File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes How can I restrict converting the < > into special characters for CDATA? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "How can I restrict converting the < > into special characters for CDATA?" Watch "How can I restrict converting the < > into special characters for CDATA?" New topic
Author

How can I restrict converting the < > into special characters for CDATA?

Sujay Patil
Greenhorn

Joined: May 16, 2005
Posts: 2
Hello,

I am calling a Web Service with CDATA elements. I am facing issue with passing objects like shown below,

<![CDATA[<name>ABC</name>]]>

It is getting converted in to below string while passing (just without - ),

&-lt;![CDATA[<name>ABC</name>]]&-gt;

How can I restrict converting the < > for CDATA? I want to pass the data with < > only. The conversion of these characters is creating issue while receiving at the Web Service. I don't have control over the service. I have to
handle this at the client level. I know it should work, but it is not working for my execution. I am using JAXB for client.

- Sujay
 
I agree. Here's the link: jrebel
 
subject: How can I restrict converting the < > into special characters for CDATA?
 
Similar Threads
Web service to get document / image content taking too long
Response xml in Apache CXF using JAX-RS
Struts2 Regex Validation killing me, Please help
How to access server configuration information from JAX-WS web service implementation?
XML Schemas and CDATA