axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gudbrand Hegge <g.he...@online.no>
Subject Problem with deserialization in client.
Date Tue, 02 Nov 2004 19:46:51 GMT
Hi.

I have a problem receiving the element from the xml using the generated code;
Ret = m_pCall->getElementAsString("executeServiceReturn", 0);

The request is received on the server, processed and returned, but Ret is always NULL even
if the element is present in the answer, see below for details. 

Appreciate any help, thanks in advance.
Gudbrand Hegge


Versions;
axis-c 1.3 win32 binary distribution (also tried 1.2 and nightly with same feature/error/resutl)
xerces-c_2_2_0

WSDL2Ws command options ../../wsdl/PdFasade.wsdl -osrc/soap -sclient -lc++

TCPMonitor for the answer;
HTTP/1.0 200 OK
X-Powered-By: Servlet 2.4; Tomcat-5.0.28/JBoss-4.0.0 (build: CVSTag=JBoss_4_0_0 date=200409200418)
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 02 Nov 2004 18:18:36 GMT
Server: Apache-Coyote/1.1

502
<?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:executeServiceResponse xmlns:ns1="http://no.politiet.pd.servers.pdfasade/ws4ee">
<executeServiceReturn>&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;
?&gt;&lt;DefaultXmlObject type=&quot;Object&quot; class=&quot;no.politiet.pd.framework.proxy.entity.Parameterz&quot;
delphiclass=&quot;Parameterz&quot;&gt;&lt;Data type=&quot;List&quot;
class=&quot;no.politiet.pd.proxy.meta.entity.ExtLibListe&quot; delphiclass=&quot;DefaultObjectListe&quot;&gt;&lt;DefaultXmlObject
type=&quot;Object&quot; class=&quot;no.politiet.pd.proxy.meta.entity.ExtLib&quot;
delphiclass=&quot;ExtLib&quot;&gt;&lt;Jarfile&gt;hibernate2.jar&lt;/Jarfile&gt;&
lt;Version&gt;2.1&lt;/Version&gt;&lt;Deprecated&gt;false&lt;/Deprecated&gt;&lt;N
ame&gt;hibernate&lt;/Name&gt;&lt;Directory&gt;/hibernate-${hibernate.version}&lt
;/Directory&gt;&lt;Id&gt;103&lt;/Id&gt;&lt;/DefaultXmlObject&gt;&lt;/Data&gt;&lt
;Command&gt;FindExtLib&lt;/Command&gt;&lt;/DefaultXmlObject&gt;</executeServiceR
eturn>
</ns1:executeServiceResponse>
</soapenv:Body>
</soapenv:Envelope>
0


WSDL;
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://no.politiet.pd.servers.pdfasade/ws4ee" xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://no.politiet.pd.servers.pdfasade/ws4ee"
xmlns:intf="http://no.politiet.pd.servers.pdfasade/ws4ee" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:message name="executeServiceRequest">
<wsdl:part name="in0" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="executeServiceResponse">
<wsdl:part name="executeServiceReturn" type="xsd:string"/>
</wsdl:message>
<wsdl:portType name="PdFasadeEndpoint">
<wsdl:operation name="executeService" parameterOrder="in0">
<wsdl:input message="impl:executeServiceRequest" name="executeServiceRequest"/>
<wsdl:output message="impl:executeServiceResponse" name="executeServiceResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="PdFasadePortSoapBinding" type="impl:PdFasadeEndpoint">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="executeService">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="executeServiceRequest">
<wsdlsoap:body namespace="http://no.politiet.pd.servers.pdfasade/ws4ee" use="literal"/>
</wsdl:input>
<wsdl:output name="executeServiceResponse">
<wsdlsoap:body namespace="http://no.politiet.pd.servers.pdfasade/ws4ee" use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="PdFasadeService">
<wsdl:port binding="impl:PdFasadePortSoapBinding" name="PdFasadePort">
<wsdlsoap:address location="http://localhost:8080/pdfasade/PdFasadeService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message