Wso2 如何在发送中介中使用自定义模块?

Wso2 如何在发送中介中使用自定义模块?,wso2,wso2esb,wso2ei,Wso2,Wso2esb,Wso2ei,我正在尝试为我的安全请求的传入响应禁用WS-Security。请求由send mediator中的策略保护,如下所示: <send> <endpoint> <address format="soap11" uri="${endpoint}"> <enableSec policy="conf:policies/Policy.xml" /> </address> </endpoint> <

我正在尝试为我的安全请求的传入响应禁用WS-Security。请求由send mediator中的策略保护,如下所示:

<send>
  <endpoint>
    <address format="soap11" uri="${endpoint}">
      <enableSec policy="conf:policies/Policy.xml" />
    </address>
  </endpoint>
</send>

. 它使用自定义模块替换消息验证的策略文件。
为了编写定制模块并在我的服务中使用它,我遵循了WSO2文档的要求

如果我通过将nosecurity模块添加到axis2.xml来全局启用该模块,它将像预期的那样对每个传入消息都有效

<!-- ================================================= -->
<!--             Global Engaged Modules                -->
<!-- ================================================= -->

<!-- Comment this out to disable Addressing -->
<module ref="addressing"/>
<module ref="nosecurity"/>

但我不知道如何仅针对发送中介使用模块。
从使用此代理时,它仅使模块参与到此代理的传入请求,而不参与使用Send Mediator调用端点的请求

<proxy xmlns="http://ws.apache.org/ns/synapse"
       name="Pass"
       transports="http,https"
       statistics="disable"
       trace="disable"
       startOnLoad="true">
  <target>
    <inSequence>
      <send>
        <endpoint>
          <address format="soap11" uri="${endpoint}">
            <enableSec policy="conf:policies/Policy.xml" />
          </address>
        </endpoint>
      </send>
    </inSequence>
    <outSequence>
      <send/>
    </outSequence>
  </target>
  <parameter name="engagedModules">nosecurity</parameter>
</proxy>

鼻安全

因此,我的问题是,如何仅为Send Mediator使用自定义Axis2模块?感谢您的任何意见。

您也可以使用服务级别的模块。 请选中以在[1]处启用服务级别的模块


[1]

谢谢您的回复。在问题的最后一部分,我提到了使用带有参数nosecurity的代理。但是,通过添加此参数,我的模块仅在代理服务的输入端参与,而不在向另一个端点发送请求的输出端参与。这是我需要接合模块的部分: