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 RE: Problem with deserialization in client.
Date Wed, 03 Nov 2004 11:28:13 GMT
I was using 
http://www.apache.org/dist/ws/axis-c/binaries/win32/axis-c-1-3-win32.zip. 
Removed everything from the computer and using 
http://www.apache.org/dist/ws/axis-c/axis-c-win32-current-bin.zip now.

Same problem.

I downloaded the axis-c-src-win32-current-src.zip and debugged it in msvc 6.0.

SoapDeSerializer::getElementAsString() fails in the if (XSD_STRING == 
getXSDType(m_pNode)) check, SoapDeSerializer::getXSDType() return XSD_UNKNOWN 
when checking the string containing an xml.

Is this the bug you have fixed?

Regards
Gudbrand

>===== Original Message From Samisa Abeysinghe <samisa_abeysinghe@yahoo.com> 
=====
>Hi,
>    Are you using 1.3 beta or 1.3 final?
>    This problem seems to be due to the use of XML as string data in SOAP 
message, and was fixed
>in 1.3 final for Xerces parser.
>    Please try axis-c-win32-current-bin.zip from 
http://www.apache.org/dist/ws/axis-c/.
>    (I think we should have named the file axis-c-win32-1.3-final-bin.zip :-( 
)
>Thanks,
>Samisa...
>
>--- Gudbrand Hegge <g.hegge@online.no> wrote:
>
>> 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><?xml version="1.0" encoding="ISO-8859-1"
>> ?><DefaultXmlObject type="Object"
>> class="no.politiet.pd.framework.proxy.entity.Parameterz"
>> delphiclass="Parameterz"><Data type="List"
>> class="no.politiet.pd.proxy.meta.entity.ExtLibListe"
>> delphiclass="DefaultObjectListe"><DefaultXmlObject type="Object"
>> class="no.politiet.pd.proxy.meta.entity.ExtLib"
>> delphiclass="ExtLib"><Jarfile>hibernate2.jar</Jarfile>&
>> lt;Version>2.1</Version><Deprecated>false</Deprecated><N
>> ame>hibernate</Name><Directory>/hibernate-${hibernate.version}<
>> ;/Directory><Id>103</Id></DefaultXmlObject></Data><
>> ;Command>FindExtLib</Command></DefaultXmlObject></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>
>>
>
>
>
>
>__________________________________
>Do you Yahoo!?
>Check out the new Yahoo! Front Page.
>www.yahoo.com


Mime
View raw message