Why can't we handle soapenc?
| "Dushshantha Chandradasa"
<[EMAIL PROTECTED]>
25/10/2005 13:14
|
|
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:[EMAIL PROTECTED]
Sent: Tuesday, October 25, 2005 5:49 PM
To: [email protected]
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>
