axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <linesh.maha...@wipro.com>
Subject RE: How to read CPP_DOC_PROVIDER response
Date Thu, 11 Aug 2005 12:09:17 GMT

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>(DefaultTypeMappin
gImpl.java:110)
at
org.apache.axis.encoding.DefaultSOAPEncodingTypeMappingImpl.<init>(Defau
ltSOAPEncodingTypeMappingImpl.java:49)
at
org.apache.axis.encoding.DefaultSOAPEncodingTypeMappingImpl.create(Defau
ltSOAPEncodingTypeMappingImpl.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:dchandradasa@virtusa.com]
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: linesh.mahadik@wipro.com [mailto:linesh.mahadik@wipro.com]
Sent: Friday, August 05, 2005 7:36 PM
To: axis-c-user@ws.apache.org
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 <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
Mailadmin@wipro.com 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 Mailadmin@wipro.com
immediately
and destroy all copies of this message and any attachments.
Mime
View raw message