Returning strings containing XML/HTML from Web service call to SOAP::Lite 2005-02-15 - By Jones, Douglas 1
Back I ran into a similar problem with SOAP, however it was using different libraries in a different language. Unless this affecting a great many characters that you can't predict, I would suggest creating a simple find/replace method to search for '<', '>', etc. and replace them with '<' and '>' and so on.
The only other suggestion that I can offer is that here we use Apache Axis to handle SOAP encoding in our Java environment and we are able to return Strings containing XML without the '<' and '>' characters being encoded.
Good luck.
-- Doug Jones Co-Op Web Developer douglas.1.jones@(protected)
-- --Original Message-- -- From: A mailing list for Java(tm) 2 Platform, Enterprise Edition [mailto:J2EE-INTEREST@(protected)]On Behalf Of Tim Wood Sent: Sunday, February 13, 2005 9:39 PM To: J2EE-INTEREST@(protected) Subject: Returning strings containing XML/HTML from Web service call to SOAP::Lite
I have a Web services application implemented on the J2EE SDK 1.4. One of my methods returns a String[], to a Perl client based on SOAP::Lite. The returned strings contain HTML (or XML) elements. When the strings reach the Perl client, all the element delimiters ('<', '>', etc.) have been replaced by their XML entity codes, i.e. <, >. Thus I can't take the strings and build them into an HTML document template that renders properly.
It seems improper that my client is exposed to this transformation. Even though it may be necessary "under the covers" of SOAP, so that XML-relevant characters in data don't get mixed up with the SOAP ones, it seems the decoding should take place on the client side. Any ideas?
Thanks, TW
======================================================================== === To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
|
|