Thanks Dushshantha for response.
 
Tried setting classpath to all jars mentioned and then ran the WSDL2WS command at the command prompt. It gives following error -

C:\Axis Extract\axis-c-1-5-win32\lib\axis\WSDL2WS>java org.apache.axis.wsdl.wsdl2ws.WSDL2Ws ProductLookupSer
vice.wsdl
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException at org.apache.axis.encoding.DefaultTypeMappingImpl.<init>(DefaultTypeMappingImpl.java:110) 
at org.apache.axis.encoding.DefaultSOAPEncodingTypeMappingImpl.<init>(DefaultSOAPEncodingTypeMappingImpl.java:49)
at org.apache.axis.encoding.DefaultSOAPEncodingTypeMappingImpl.create(DefaultSOAPEncodingTypeMappingImpl.java:38)
at org.apache.axis.wsdl.gen.NoopFactory$1.<init>(NoopFactory.java:136)
at org.apache.axis.wsdl.gen.NoopFactory.getBaseTypeMapping(NoopFactory.java:134)
at org.apache.axis.wsdl.gen.Parser.run(Parser.java:272)
at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.<init>(Unknown Source)
at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.main(Unknown Source)

Any idea what I could be missing?
 
Thanks,
Linesh


From: Dushshantha Chandradasa [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 09, 2005 11:53 AM
To: Apache AXIS C User List
Subject: RE: How to read CPP_DOC_PROVIDER response

HI Linesh,

 

Use a wsdl file of a Doc/Lit style to auto generate code for a doc/lit client and a server.

 

Go to \tests\auto_build\testcases\wsdls folder in your axis home folder. Get CalculatorDoc.wsdl file and auto generate client and server codes using wsdl2ws tool as described in   http://ws.apache.org/axis/cpp/arch/WSDL2Ws.html#codegen . You can find implemented client code in \tests\auto_build\testcases\client\cpp folder which is CalculatorDocClient.cpp.

 

Try with these.

 

Thanks,

Dushshantha

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, August 05, 2005 7:36 PM
To: [email protected]
Subject: How to read CPP_DOC_PROVIDER response

 

Hi,

 

Calculator sample made available on Axis website demonstrates reading response from RPC_PROVIDER Calculator webservice in following way.

 

  if (AXIS_SUCCESS == m_pCall->invoke())
  {
   if(AXIS_SUCCESS == m_pCall->checkMessage("addResponse", "
http://localhost/axis/Calculator"))
   {
     Ret = m_pCall->getElementAsInt("addReturn", 0);

 

   }
  }

 

What is the correct way of reading response from a DOC_PROVIDER webservice?

 

 

Thanks & regards,

 

Linesh



Confidentiality Notice

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.


Confidentiality Notice

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.

Reply via email to