【发布时间】:2017-11-06 11:25:38
【问题描述】:
我们正在使用 wso2 api manager (2.1.0) 来管理我们的 SOAP api。 我们的 Web 服务的响应消息具有内容类型“应用程序/一角钱”。 我们将 axis2.xml 更改为使用具有该内容类型的二进制中继(构建器和格式化程序)。
<messageFormatter contentType="application/dime"
class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
<messageBuilder contentType="application/dime"
class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
响应 SOAP 消息没有展开,所以我们有一个这样的返回信封
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:binary xmlns:ns="http://ws.apache.org/commons/ns/payload">DCAAAAApACkAAAJxdXVpZDo3MTRDNk...U9GCgA=</ns:binary>
</soapenv:Body>
</soapenv:Envelope>
我们在 wso2 企业集成器 (6.1.1) 中看到了相同的行为。
是否需要进行任何配置才能在 api 管理器或企业集成器中扩展响应 SOAP 消息? 我们可以做点别的吗?
【问题讨论】:
标签: wso2 wso2esb wso2-am wso2carbon api-manager