You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Jaroslav Šrýtr <sr...@seznam.cz> on 2004/10/02 11:20:26 UTC
How deserialize XML data in application
Hi,
I have this problem:
I use Apache SOAP for Java. I create a request on a client and send it on
a server. But aplication, which is as server doesn't run under a Tomcat. It
is classic Java aplication, which listen on a specific port.
And here is problem. I don't know, how deserialize a data,
which I get and how serilaize a response.
It's possible with Apache SOAP, or I must use any other XML parser
(xerces?).
Thanks,
Jarda
Re: How deserialize XML data in application
Posted by Scott Nichol <sn...@scottnichol.com>.
I have not done what you are asking about, but here is an outline of what I imagine you could try.
1. Use an XML parser to parse the XML into a DOM.
2. Call Envelope.Unmarshall to organize the elements in the DOM into the SOAP Header and Body.
3. Call RPCMessage.extractFromEnvelope to further distinguish the method name and parameters. This is where most of the value of Apache SOAP would come in. However, it is also where you must supply it some information, namely, the SOAPMappingRegistry.
Scott Nichol
Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message -----
From: "Jaroslav Šrýtr" <sr...@seznam.cz>
To: <so...@ws.apache.org>
Sent: Saturday, October 02, 2004 5:20 AM
Subject: How deserialize XML data in application
> Hi,
> I have this problem:
> I use Apache SOAP for Java. I create a request on a client and send it on
> a server. But aplication, which is as server doesn't run under a Tomcat. It
> is classic Java aplication, which listen on a specific port.
> And here is problem. I don't know, how deserialize a data,
> which I get and how serilaize a response.
> It's possible with Apache SOAP, or I must use any other XML parser
> (xerces?).
>
> Thanks,
>
> Jarda
>
>