At 05:44 PM 8/7/2001 -0500, Rich Catlett wrote:
>Okay I guess then that my question really is I send an envelope to a messaging 
>service, the body of which I want to extract and pass on.  How do I extract the XML 
>document which as best I can tell is in the body of the Envelope.  Do I have to 
>marshall it back into an XML document.  Is there an easier way send an XML document 
>so that I don't have to deal with marshalling and unmarshalling since I am doing that 
>outside of SOAP.

Hmm...you want SOAP to send a particular text; the fact that the text
is XML and that SOAP is XML-aware is really incidental, isn't it?
And you've got the document as a string already, so why not just send
a string? SOAP really does work pretty well with params of String.class,
unless they're large -- there have been reports of performance issues
with large strings, and I keep meaning to see if this is sensitive to
the number of special chars ("<",">","&" and so forth) which get
converted; if I did this and had a performance problem, I'd try a
java.net.URLEncoder / URLDecoder pair just to see what happened.
(I'm not at all sure this addresses what you're doing, but it might.)

Tom Myers

Reply via email to