I suppose you mean deserialization and not serialization. If you have a
service in Axis:
request = MessageContext.getCurrentContext().getRequestMessage();
returns you the request message. And
envelope = request.getSOAPEnvelope();
returns you the SOAPEnvelope and
envelope.getFirstBody();
would return you
<CreateSession2Response>
<sessionReference>http://test.blah.co.uk:85/digest/31383335333535373</sessio
nReference>
<launch>
<viewer>
<version>2.0</version>
<URL>http://test.blah.co.uk:85/digest/313833353335353734373335333535373</URL
>
<versionURL>http://www.blah.com/client-version</versionURL>
</viewer>
</launch>
</CreateSession2Response>
and so on. Is this what you wanted? Regards.
> -----Original Message-----
> From: Paul Johnston [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 27, 2002 4:20 PM
> To: [EMAIL PROTECTED]
> Subject: Retrieving data from a SOAP packet
>
>
> I am implementing a SOAP interface to a client's software and
> am having a
> problem serializing the data returned. The data is returned
> like this:
>
> <?xml version="1.0"?>
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
> <SOAP-ENV:Body>
> <CreateSession2Response>
>
> <sessionReference>http://test.blah.co.uk:85/digest/31383335333
> 535373</sessio
> nReference>
> <launch>
> <viewer>
> <version>2.0</version>
>
> <URL>http://test.blah.co.uk:85/digest/313833353335353734373335
333535373</URL
> >
>
> <versionURL>http://www.blah.com/client-version</versionURL>
> </viewer>
> </launch>
> </CreateSession2Response>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> How can I get that into Java? Currently I'm a tad confused!
> I can get a
> simple string into Java, but above and beyond that...
>
> Paul
>
> PS the packet will always be the same form
>