You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Csaba Nemeti <nd...@gmail.com> on 2005/01/20 18:15:47 UTC

XML <--> object

Hello.

I'm very new in SOAP and I have a big question.
I have a simple SOAP client that suppose to call a method like
public MyMessage processMessage(MyMessage x)
Unfortunately I'm not able use the server side of the SOAP. This means
that call is going to a servlet where it should be processed and
returned a response.
Inside this servlet I can use anything from SOAP.
My idea is to convert request (XML) into object, process data with the
object and convert the object back in XML and send the SOAP response.
I was able (using code from AXIS to create an org.apache.axis.Message
object but I do not know how to convert this object's MyMessage part
in my real object and back.
Could somebody help me please?

P.S. Serializers are written, and they were tested.


-- 
ND
IF YOU WANT GOOGLE MAIL INVITATION, ask me (I already have 10).
When NASA first started sending up astronauts, they quickly discovered
that ballpoint pens would not work in zero gravity.
To combat the problem, NASA scientists spent a decade and $12 billion
to develop a pen that writes in zero gravity, upside down, underwater,
on almost any surface including glass and at temperatures ranging from
below freezing to 300C.
The Russians used a pencil.