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 Tom Myers <to...@dreamscape.com> on 2001/05/08 00:07:34 UTC

Re: XML String

At 05:48 PM 5/7/2001 -0500, Lev Gelfer wrote:

>      My Java method returns an XML String. When I call it through SOAP the String is converted and all < > symbols are replaced with &lt and &gt symbols. Any ideas on how I can stop it. I tried to return CDATA[XML-STRING] but that didn't help.


Well, as long as you're in Java, you should be able to parse the 
string and return an Element instead; as Bob Molden was just saying, 

>Check the GetAllListings.java program from the AddressBook sample. 

(and of course the AddressBook itself.) However, I'd like to find a
different answer here because I've been playing with script-services,
and in javascript so far as I know I can't return an Element...it has
to be a string, and so I've got your same problem. I guess I want to
substitute a different Serializer...it might give a performance
boost anyway, because the parse-then-return-Element solution should
be just a way of regenerating the string you're starting with. But 
I really don't yet know how to work it.

Tom Myers


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org