users@jax-rpc.java.net

Re: Coding Client - getHelloIFPort()

From: Simon Horrell <simonh_at_develop.com>
Date: Thu, 13 Jun 2002 13:18:27 +0100

Yes, xrpcc generates the stub slightly differently in 1.0.
Also, where you previously had jaxm-client.jar in the classpath you now need saaj-api.jar and saaj-ri.jar.
Si.
----- Original Message -----

  From: Noe Orlando Araujo Vilas Boas
  To: JAXRPC-INTEREST_at_JAVA.SUN.COM
  Sent: Thursday, June 13, 2002 12:29 PM
  Subject: Coding Client - getHelloIFPort()


  Hi,

  I develop some web services with JWSDP ea2 and now I am tring to migrate to v1.0.

  In fisrt version of Client I do :

    DrugstoreIF_Stub stub = (DrugstoreIF_Stub)(new Drugstore_Impl().getDrugstoreIF());
              stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,args[0]);

  and now I need to put getDrugstoreIFPort(), in order to get no compilation errors, but it causes runtime error when I call the service

  C:\pt\uminho\paredes\applets>c:\j2sdk1.4.0\bin\java -cp c:\lib;c:\jwsdp\common\l
  ib\jaxrpc-api.jar;c:\jwsdp\common\lib\jaxrpc-ri.jar;c:\jwsdp\common\lib\activati
  on.jar;c:\jwsdp\common\lib\mail.jar;c:\jwsdp\common\lib\jaxp-api.jar;c:\jwsdp\co
  mmon\lib\jaxm-client.jar;c:\jwsdp\common\lib\jaxm-api.jar;c:\jwsdp\common\endors
  ed\sax.jar;c:\jwsdp\common\endorsed\dom.jar pt.uminho.paredes.applets.DrugstoreC
  lient http://lindoso:8080/jaxrpc-drugstore/drugstore/DrugstoreIF

  Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/soap/SOAPEl
  ement
          at pt.uminho.paredes.webservices.drugstore.Drugstore_Impl.getDrugstoreIF
  Port(Unknown Source)
          at pt.uminho.paredes.applets.DrugstoreClient.main(DrugstoreClient.java:3
  2)


  Thanks