webservice客户端接收为乱码
- XML code
<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><UserInfoSyncToISMPResp xmlns="http://www.mbossvsop.com.cn/vsop"><response xmlns="">成功</response></UserInfoSyncToISMPResp></soapenv:Body></soapenv:Envelope>
PS:是在linux环境中,java文件是使用gbk编码,客户端要求返回utf-8编码的信息。
[解决办法]
编码解码