The problem here is the Axis Java server is using href/muliref.
Axis C++ is not able to deal with href/multiref.
You could disable href/multiref on Axis Java server.

Please see http://issues.apache.org/jira/browse/AXISCPP-111 for more
details. This issue also mentions how to disable href/multiref in Axis
Java.

Thanks,
Samisa...

> -----Original Message-----
> From: csj [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 10, 2005 1:07 AM
> To: [email protected]
> Subject: getElementAsInt return null
> 
> All -
> 
> I have a simple calculator webservice running on a Java Axis 1.2
server.
> 
> Everything works great with a Java client.  After building a C++
client,
> building stub code from the wsdl, my C++ Client will always seg fault.
> 
> using gdb I found that
> Ret = m_pCall->getElementAsInt("result", 0 );
> always returns null for the following xml that the server returns.
> 
> Any help on this would be great.
> 
> Thanks.
> Chris
> 
> --- XML From Server ----
> 
> <?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:addResponse
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
> xmlns:ns1="http://Math.dolphtech.com";><result
> href="#id0"/></ns1:addResponse><multiRef id="id0" soapenc:root="0"
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
> xsi:type="xsd:int"
>
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>6</multiRef></
so
> apenv:Body></soapenv:Envelope>

Reply via email to