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 Data getting corrupt. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Data getting corrupt." Watch "Data getting corrupt." New topic
Author

Data getting corrupt.

Hemen Thacker
Greenhorn

Joined: Apr 24, 2006
Posts: 2
Hi,

I am trying to call a webservice with a ISO-8859-1 character on the server its adding a junk character.

Submitted string
� forte: Test

Received string on server.
�� forte: Test

Webservice is created using AXIS - wsdl2java RPC is used in webservice.

Any help is much appreciated.

Thanks,
Hemen
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
If this was my problem my first step would be to use TCPMON or similar utility to intercept the exact contents of request and response. Sometimes that reveals a simple cause.

Bill
Hemen Thacker
Greenhorn

Joined: Apr 24, 2006
Posts: 2
Hi Bill,

The yen character is ISO character and not UTF-8 thats why its getting a additional character. Attached is simple code to recreate the issue. I can solve this issue if the request and response object is changed to ISO encoding. Any idea if thats possible and if yes how can it be done? Thanks for your help.

 
Don't get me started about those stupid light bulbs.
 
subject: Data getting corrupt.
 
Similar Threads
default character set seems not work in my jboss environment
Can we support Map/HashMap in the webservice as one of internal parameters?
Forte as a JSP tool
WL WebService with French character
escape sequence for "@"