开发者

Axi2 client made with wsdl2Java uses UTF-8 instead of UTF-16

开发者 https://www.devze.com 2023-04-07 10:12 出处:网络
I\'m using Axis2 1.6.1 to create a webservice, both the server and the client. The webs开发者_如何学Pythonervice is pretty simple: it receives two strings and returns an array of bytes. The issue I\'m

I'm using Axis2 1.6.1 to create a webservice, both the server and the client. The webs开发者_如何学Pythonervice is pretty simple: it receives two strings and returns an array of bytes. The issue I'm finding is that the client is sending the request encoded as UTF-8, so when I send a text in Spanish with accents, they get replaced by some strange characters. How can I force the client to use UTF-16?

Thanks

Jose Luis


you need to set it as a service client property. Please have a look at here[1].

[1] http://wso2.org/library/230

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号