0

我在 wso2 esb 中有一个服务链,现在我想让一个应用程序从中发送和接收消息,但我有一个错误:

The content type application/soap+xml; charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 361 bytes of the response were: '<?xml version='1.0' encoding='utf-8'?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><MultiServiceResponse xmlns="http://tempuri.org/"><MultiServiceResult>121</MultiServiceResult></MultiServiceResponse></soap:Body></soap:Envelope>'
4

1 回答 1

1

看起来您已经为需要一个soap11 请求的服务发送了一个soap12 请求。使用soap11 请求调用服务,您将能够摆脱这个问题。

于 2013-09-22T14:16:12.203 回答