开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜