axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Dick <adrian.d...@uk.ibm.com>
Subject RE: xsd__string always null
Date Wed, 26 Oct 2005 08:14:53 GMT
Hi,

I believe we would only need to modify the if(...) on line 2551 of
SoapDeSerializer.cpp (within getXSDType() ) to also include  URI_ENC.

Regards,
Adrian
_______________________________________
Adrian Dick (adrian.dick@uk.ibm.com)

John Hawkins/UK/IBM@IBMGB wrote on 25/10/2005 18:22:08:

>
> Why can't we handle soapenc?
>
>
>

>
> "Dushshantha Chandradasa" <dchandradasa@virtusa.com>
> 25/10/2005 13:14
>
> Please respond to
> "Apache AXIS C User List"
>
> To
>
> "Apache AXIS C User List" <axis-c-user@ws.apache.org>
>
> cc
>
> Subject
>
> RE: xsd__string always null
>
>
>
>
> Hi Chris,
>
> Your problem here is the namespace soapenc. C++ client cannot understand
> soapenc:string. It can unserstand xsd:string. If you can ask the java
> service to send the response as xsd:string, C++ will work properly. You
> can do that by making the following change in server-config.wsdd of your
> service.
>
> <parameter name="dotNetSoapEncFix" value="true"/>
>
> This will prevent the Java service sending soapenc:string.
>
> Thanks,
> Dushshantha
>
> -----Original Message-----
> From: Christopher S. Johnson [mailto:johnsocs@clarkson.edu]
> Sent: Tuesday, October 25, 2005 5:49 PM
> To: axis-c-user@ws.apache.org
> Subject: xsd__string always null
>
> All -
>
> I have a java web service server and a C++ client, it seems from
> following
> the http stream that the service is working (simple getVersion service)
> but it seems that that xsd__string that is returned is always null.
>
> I'm doing something like this..
>
> Any ideas would be helpful.
>
> Thanks..
>
> Version v;
> xsd__string s;
> s = v.getVersion();
> printf("%s\n",s);
>
> the ouput is (null)
>
>
> POST /axis/services/Version HTTP/1.1
> Host: 192.168.12.113:80
> Content-Type: text/xml; charset=UTF-8
> SOAPAction: ""
> Content-Length: 364
>
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:getVersion xmlns:ns1="http://192.168.12.113/axis/services/Version">
> </ns1:getVersion>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> HTTP/1.1 200 OK
> Date: Tue, 25 Oct 2005 12:35:27 GMT
> Content-Type: text/xml;charset=utf-8
> Content-Length: 632
>
> <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
>  <ns1:getVersionResponse
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:ns1="http://192.168.12.113/axis/services/Version">
>   <getVersionReturn xsi:type="soapenc:string"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">Apache Axis
> version: 1.2RC3
> Built on Feb 28, 2005 (10:15:14 EST)</getVersionReturn>
>  </ns1:getVersionResponse>
> </soapenv:Body>
> </soapenv:Envelope>


Mime
View raw message