wood burning stoves*
The moose likes Web Services and the fly likes Axis 1.4 strange characters response < 
 ... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis 1.4 strange characters response &lt; &#13; ..." Watch "Axis 1.4 strange characters response &lt; &#13; ..." New topic
Author

Axis 1.4 strange characters response &lt; &#13; ...

Dave Dave
Greenhorn

Joined: Aug 24, 2009
Posts: 1
Hello,

My name is David and i have seen that you are an experienced user of axis. I need to connect to one Web Service that have a wsdl that i can't change.=20

I am receiving strange characters in their response:

For example:

You must present a photo ID when checking in. Your credit card is charged at the time you book. Bed type and smoking preferences are not guaranteed.Your reservation is prepaid and is guaranteed for late arrival. The total charge includes all room charges and taxes, as well as fees for access and booking. Any incidental charges such as parking, phone calls, and room service will be handled directly between you and the property.

The wsdl is RPC encoded and i can only use Axis 1.4 because Axis 2 doesn't allow RPC encoded.=20

I don't know how to solve this problem because i receive many strange characters....

Do you know how to solve, including some header in the stub? The stub of axis have one method setHeader.

I have tried the following:=20

stub.setHeader("urn:thisNamespace", "charset", "ISO-8859-1"); or
stub.setHeader("urn:thisNamespace", "charset", "UTF-8");

And the result is the same.

Do you know how to solve?

Regards

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60800
    
  65

"Dave Dave", please check your private messages for an important administrative matter.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Don't get me started about those stupid light bulbs.
 
subject: Axis 1.4 strange characters response &lt; &#13; ...
 
Similar Threads
encoding style: literal vs encoded
General Doubts in WebServices after Fibonacci Example
Jax-RPC Vs SAAJ
How to provide interoperabilty?? RPC or document???
JaxWS vs. Axis