I'm devloping RESTful web services using jersey in NetBeans 6.0. I'm accessing the services through Ajax javascript. In each request i'm sending an xmlString which is then parsed at the service level and stored in the database. This is working fine.
For the same service i'm trying to access from java through org.apache.commons.httpclient.
I'm successful in hitting the service and sending the xmlString to the service. But at the service level xmlString is corrupted. All the <, > and / symbols are transformed in to equivalent %3C, %3E etc.....
xmlString at the httpclient:
<Data><anlEventId>10</anlEventId><anlApplication>abc</anlApplication>/Data>
xmlString at the RESTService.
%3CData%3E%3CanlEventId%3E10%3C%2FanlEventId%3E%3CanlApplication%3Eabc%3C%2FanlApplication%3E%3C%2FData%3E
Server: Tomcat 6.0
Platform: Java
Services: RESTful Web services using jersey(NetBeans plugin for jersey)
at the client level i've checked the charset of the request and response(using post.getResponseCharSet() & post. getRequestCharSet()). In both cases it is iso-8859-1. Still it creating problem.
Please let me know is there any solution.
Thanks
Srini
Software/Hardware used:
ASKED:
June 19, 2008 8:05 AM
UPDATED:
March 26, 2012 11:30 AM