Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Returning strings containing XML/HTML from Web service call to SOAP::Lite

Returning strings containing XML/HTML from Web service call to SOAP::Lite

2005-02-15       - By Jones, Douglas 1

 Back
Reply:     1     2     3     4  

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 '&lt;', '&gt;', 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. &lt;, &gt;.  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".

©2008 junlu.com - Jax Systems, LLC, U.S.A.