You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by ma...@ubs.com on 2005/11/01 18:11:13 UTC
C++ client serializer/deserializer
Hi,
Am using Axis 1.5 on Windows to create a C++ client talking to a Java web service.
I need to serialize a map class on the C++ side.
Is there some tutorial/documentation on how to do this - like classes involved(IWrapperSoapSerializer) etc ?
I tried various attempts but keep getting a SERVER_TRANSPORT_INPUT_STREAMING_ERROR.
The xml that the java service needs looks like the attached file.
Could someone pls help ?
Regards
Marise.
Re: C++ client serializer/deserializer
Posted by Samisa Abeysinghe <sa...@gmail.com>.
marise.de-souza@ubs.com wrote:
>Hi,
>Am using Axis 1.5 on Windows to create a C++ client talking to a Java web service.
>I need to serialize a map class on the C++ side.
>Is there some tutorial/documentation on how to do this - like classes involved(IWrapperSoapSerializer) etc ?
>
>
Please have a look at src/soap/SoapSerializer.h, this is the API used by
the current engine. (IWrapperSoapSerializer seems to be outdated)
Also, note that you could use the 'SoapSerializer* getSOAPSerializer()'
of Call class (include/axis/client/Call.hpp) to get access to the
serializer.
HTH.
Thanks,
Samisa...
>I tried various attempts but keep getting a SERVER_TRANSPORT_INPUT_STREAMING_ERROR.
>
>The xml that the java service needs looks like the attached file.
>
>Could someone pls help ?
>
>Regards
>Marise.
>
>
>------------------------------------------------------------------------
>
><?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>
> <>
> <in0 href="#id0"/>
> </>
> <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns1:ServiceCreditCheckRequest" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://messages.shared.creditchecking.ir.ubs.com">
> <fields href="#id1"/>
> <id xsi:type="xsd:string">1234</id>
> </multiRef>
> <multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Map" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> <item>
> <key xsi:type="xsd:string">key1</key>
> <value xsi:type="xsd:string">value1</value>
> </item>
> </multiRef>
> </soapenv:Body>
></soapenv:Envelope>
>
>------------------------------------------------------------------------
>
>
>Visit our website at http://www.ubs.com
>
>This message contains confidential information and is intended only
>for the individual named. If you are not the named addressee you
>should not disseminate, distribute or copy this e-mail. Please
>notify the sender immediately by e-mail if you have received this
>e-mail by mistake and delete this e-mail from your system.
>
>E-mail transmission cannot be guaranteed to be secure or error-free
>as information could be intercepted, corrupted, lost, destroyed,
>arrive late or incomplete, or contain viruses. The sender therefore
>does not accept liability for any errors or omissions in the contents
>of this message which arise as a result of e-mail transmission. If
>verification is required please request a hard-copy version. This
>message is provided for informational purposes and should not be
>construed as a solicitation or offer to buy or sell any securities or
>related financial instruments.
>
>