soapui加载天气预报接口报错Characters larger than 4 bytes are not supported: byte 0xb1 implies a length of more than 4 byte的解决办法

时间:2022-04-16 23:38:43

soapui加载天气预报接口时报错如下:

Error loading [http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?wsdl]: org.apache.xmlbeans.XmlException: java.io.CharConversionException: Characters larger than 4 bytes are not supported: byte 0xb1 implies a length of more than 4 byte

截图如下:

soapui加载天气预报接口报错Characters larger than 4 bytes are not supported: byte 0xb1 implies a length of more than 4 byte的解决办法

解决办法:

在soapui的安装目录下找到SoapUI-4.6.4.vmoptions,在文件末尾添加-Dfile.encoding=UTF8,重启soapui即可。