Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 53468 invoked from network); 11 Aug 2005 12:10:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Aug 2005 12:10:35 -0000 Received: (qmail 81276 invoked by uid 500); 11 Aug 2005 12:10:34 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 81259 invoked by uid 500); 11 Aug 2005 12:10:34 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 81246 invoked by uid 99); 11 Aug 2005 12:10:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2005 05:10:34 -0700 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=HTML_MESSAGE,HTML_TAG_EXIST_TBODY,HTML_TEXT_AFTER_BODY,HTML_TEXT_AFTER_HTML,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [203.101.113.41] (HELO wip-ectls-mx3.wipro.com) (203.101.113.41) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2005 05:10:55 -0700 Received: from wip-ectls-mx3.wipro.com (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id C87A822428A for ; Thu, 11 Aug 2005 17:40:28 +0530 (IST) Received: from blr-ec-bh02.wipro.com (blr-ec-bh02.wipro.com [10.201.50.92]) by wip-ectls-mx3.wipro.com (Postfix) with ESMTP id BAF8C2240ED for ; Thu, 11 Aug 2005 17:40:28 +0530 (IST) Received: from BLR-EC-MBX04.wipro.com ([10.201.50.165]) by blr-ec-bh02.wipro.com with Microsoft SMTPSVC(6.0.3790.211); Thu, 11 Aug 2005 17:40:28 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C59E6D.A9A20255" Subject: RE: How to read CPP_DOC_PROVIDER response Date: Thu, 11 Aug 2005 17:39:17 +0530 Message-ID: <572F5724CBFEB84486F2B87D2BCC0A833874C2@BLR-EC-MBX04.wipro.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to read CPP_DOC_PROVIDER response thread-index: AcWZwpobJt6V9F5YSq+PPs5Hj+yLmwC5eD4AAHEfxUA= From: To: X-OriginalArrivalTime: 11 Aug 2005 12:10:28.0661 (UTC) FILETIME=[A9C1EE50:01C59E6D] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C59E6D.A9A20255 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Thanks Dushshantha for response. =0D Tried setting classpath to all jars mentioned and then ran the WSDL2WS command at the command prompt. It gives following error -=0D 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.(DefaultTypeMappin gImpl.java:110)=0D at org.apache.axis.encoding.DefaultSOAPEncodingTypeMappingImpl.(Defau ltSOAPEncodingTypeMappingImpl.java:49) at org.apache.axis.encoding.DefaultSOAPEncodingTypeMappingImpl.create(Defau ltSOAPEncodingTypeMappingImpl.java:38) at org.apache.axis.wsdl.gen.NoopFactory$1.(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.(Unknown Source) at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.main(Unknown Source) Any idea what I could be missing? =0D Thanks, Linesh ________________________________ From: Dushshantha Chandradasa [mailto:dchandradasa@virtusa.com]=0D 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, =0D Use a wsdl file of a Doc/Lit style to auto generate code for a doc/lit client and a server.=0D =0D 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. =0D Try with these. =0D Thanks,=0D Dushshantha =0D ________________________________ From: linesh.mahadik@wipro.com [mailto:linesh.mahadik@wipro.com]=0D Sent: Friday, August 05, 2005 7:36 PM To: axis-c-user@ws.apache.org Subject: How to read CPP_DOC_PROVIDER response =0D Hi,=0D =0D Calculator sample made available on Axis website demonstrates reading response from RPC_PROVIDER Calculator webservice in following way. =0D if (AXIS_SUCCESS =3D=3D m_pCall->invoke()) { if(AXIS_SUCCESS =3D=3D m_pCall->checkMessage("addResponse", "http://localhost/axis/Calculator ")) { Ret =3D m_pCall->getElementAsInt("addReturn", 0); =0D } } =0D What is the correct way of reading response from a DOC_PROVIDER webservice? =0D =0D Thanks & regards, =0D Linesh Confidentiality Notice=0D 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. =0D Confidentiality Notice=0D 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. ------_=_NextPart_001_01C59E6D.A9A20255 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable
Thanks Dushshantha for= response.
 
Tried setting classpath to all jars mentioned and= then ran=0D the WSDL2WS command at the command prompt. It gives following error -=0D

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

Any idea what I could be= missing?
 
Thanks,
Linesh


From: Dushshantha Chandradasa=0D [mailto:dchandradasa@virtusa.com]
Sent: Tuesday, August 09, 2005= =0D 11:53 AM
To: Apache AXIS C User List
Subject: RE: How= to=0D read CPP_DOC_PROVIDER response

HI=0D Linesh,

 

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

 

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

 

Try with=0D these.

 

Thanks,=0D

Dushshantha

 


From:=0D linesh.mahadik@wipro.com [mailto:linesh.mahadik@wipro.com]
Sent:
Friday, August 05, 2005 7:36=0D PM
To:=0D axis-c-user@ws.apache.org
Subject: How to read= CPP_DOC_PROVIDER=0D response

 

Hi,=0D

 

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

 

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

 

   }
  }

 

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

 

 

Thanks &=0D regards,

 

Linesh



Confidentiality= Notice=0D

The information contained in this electronic message and any= =0D attachments to this message are intended
for the exclusive use of= the=0D addressee(s) and may contain confidential or privileged information.= =0D If
you are not the intended recipient, please notify the sender at= =0D Wipro or Mailadmin@wipro.com immediately
and destroy all copies of= this=0D 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.
------_=_NextPart_001_01C59E6D.A9A20255--