Hello,

I am working on a project using a document/literal Web Service with Apache
SOAP inside IBM WSAD.  The following are two questions I was hoping I could
receive guidance on:
(1)  The service I am building has to extract the literal contents of the
soap body and do something with it.  However, the methods available in
Apache SOAP seem to get at the body as a Java object.  Is there any way I
could get at the string representation of the SOAP body easily.  I was
hoping for something like a toString() that outputted the full payload of
the body in the XML structure it is passed in as or a toXML() that might do
the same thing but those don't appear to work as I would hope or exist.
What is the easiest way to get at the literal string in the body or do I
have to parse it myself into that string?
(2)  Perhaps a little harder, my response has to be wrapped in a "vanilla"
SOAP envelope.  Unfortunately, while looking at the code of the
MessageRouterServlet, I see that in a valid response it performs the
following:
sres = new TransportMessage( null, resCtx, null); where the first parameter
is the envelope.  How can I get an envelope wrapped around a response
without extending or editing MessageRouterServlet?  Does Apache SOAP not
allow this to be done and just assumes responses won't go back via an
envelope?  Is there any way to do this?  Will the EnvelopeEditor help me out
or do I understand that plugin wrong?  If possible, any simple code or links
accomplishing this would be appreciated.

Thanks for any help,
Mike

Reply via email to