axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From csj <johns...@clarkson.edu>
Subject getElementAsInt return null
Date Tue, 09 Aug 2005 19:06:46 GMT
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></soapenv:Body></soapenv:Envelope>

Mime
View raw message