[英]SOAP Request using Java
I have been trying to send a request through soapui and I always keep getting the following error message: 我一直在尝试通过soapui发送请求,并且始终收到以下错误消息:
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Failed to process SOAP request. SOAP body not in UTF-16.</faultstring>
<detail>
<wsdl_ops:error>
Failed to process SOAP request. SOAP body not in UTF-16.
</wsdl_ops:error>
</detail>
</soap:Fault>
</soap:Body>
Has anyone run into the same issue before? 有人遇到过同样的问题吗?
UPDATE: 更新:
I changed the encoding to UTF-16 and it worked for me. 我将编码更改为UTF-16,并且对我有用。 Now, when I send the request I get the following error instead:
现在,当我发送请求时,我收到以下错误:
REQUEST: 请求:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://www.broadsign.com/wsdl_ops">
<soapenv:Header/>
<soapenv:Body>
<ns1:request not_modified_since="1970-01-01T00:00:00" token="0" requestid="1" version="4" name="category_mgr_list">
<category domain_id="1719213" />
</ns1:request>
</soapenv:Body>
</soapenv:Envelope>
RESPONSE: 响应:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl_ops="http://www.broadsign.com/wsdl_ops">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Invalid request.</faultstring>
<detail>
<wsdl_ops:error>Invalid request.</wsdl_ops:error>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
What am I missing? 我想念什么? :(
:(
Sounds like the service is expecting the request to be encoded as UTF-16. 听起来该服务希望该请求被编码为UTF-16。 Validate your request and try setting the encoding in the request properties.
验证您的请求,然后尝试在请求属性中设置编码。 Failing that, edit your question with the raw inputs and outputs.
如果失败,请使用原始输入和输出来编辑您的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.