J2ME web services(JSR 172): how to specify default character encoding?
how can I specify the default (or custom) character encoding when using the WSA (JSR 172) ?
I have a problem with non-english characters. When I invoke a generated Stub it doesn't negotiate the character encoding when obtaining the handshake with a Web-Service. The Web-Service then sends a default charset="iso-8859-1" encoding. Then when the WS-Client sends some request it is encoded in utf-8. The WS-Service returns a response encoded in iso-8859-1.... All the special characters get screwed up! (and I even get exceptions sometimes...) :(
P.S. I've figured all that by using wireshark to debug the sent SOAP Messages on the fly.