我有一个托管在Weblogic中的SOAP服务,它使用web服务寻址(WS)。我正在尝试使用WSO2 API管理器发布它。
原始请求有一个完整的SOAP头,包括一个Action和MessageID:
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Action>urn:es:cetelem:ws:venta:promociones:services:promocionesService:promocionesService_v03:PromocionesServicePortType:obtenerPromocionesOperacionVndRequest</wsa:Action>
<wsa:MessageID>uuid:969e636c-067f-4bed-a38a-65f0f81c295d</wsa:MessageID>
</soapenv:Header>但是wso2-am在发送到Werblogic服务器的最终端点之前,会从SOAP头中移除字段操作和MessageID。这是wso2-am <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"/>发送错误听筒的一个例子。
如何配置wso2-am以保持由客户端发送的SOAP头。
发布于 2015-11-02 12:58:12
我找到了解决办法。我在[CARBON-HOME]/repository/deployment/server/synapse-configs/default/sequences中添加了一个新的序列中介扩展,以保留原始的WS头。新的扩展设置为真PRESERVE_WS_ADDRESSING属性。
访问https://docs.wso2.com/display/ESB460/Generic+Properties。
新调解人的守则是:
<sequence xmlns="http://ws.apache.org/ns/synapse" name="WSO2AM--Ext--In">
<property name="PRESERVE_WS_ADDRESSING" value="true" scope="default" type="STRING"/>
</sequence> https://stackoverflow.com/questions/33415979
复制相似问题