在 WSO2 ESB 中使用服务链接的应用程序时出错

本文关键字:链接 应用程序 出错 服务 WSO2 ESB | 更新日期: 2023-09-27 18:32:28

我在 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>'

在 WSO2 ESB 中使用服务链接的应用程序时出错

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