如何在Mule ESB中使用选择模式而不是Soap请求?

如何在Mule ESB中使用选择模式而不是Soap请求?,soap,mule,esb,choice,Soap,Mule,Esb,Choice,我有一个接受Soap请求的端点,在该端点之后,它将转到一个转换消息,该消息将生成对外部web服务的适当请求。 我想做的是使用Choice模式来决定我必须重定向到哪个外部web服务 <http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/> <cxf:configuration name="C

我有一个接受Soap请求的端点,在该端点之后,它将转到一个转换消息,该消息将生成对外部web服务的适当请求。 我想做的是使用Choice模式来决定我必须重定向到哪个外部web服务

<http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/>
<cxf:configuration name="CXF_Configuration" enableMuleSoapHeaders="true" initializeStaticBusInstance="true" doc:name="CXF Configuration"/>
<ws:consumer-config name="Web_Service_Consumer" service="KarmaService" port="KarmaPort" serviceAddress="http://localhost:8080/TestingWS/Karma" wsdlLocation="http://localhost:8080/TestingWS/Karma?wsdl" doc:name="Web Service Consumer"/>
<flow name="testingChoice">
    <http:listener config-ref="HTTP_Listener_Configuration" path="/" doc:name="HTTP"/>
    <cxf:proxy-service configuration-ref="CXF_Configuration" payload="body" doc:name="CXF"/>
    <dw:transform-message doc:name="Transform Message">
        <dw:set-payload><![CDATA[%dw 1.0
    %output application/xml
    %namespace ns0 http://karmapackage/
    ---
    {
       ns0#sayHello: {
      arg0: payload.invoke.arg0
    }
    }]]></dw:set-payload>
    </dw:transform-message>
    <choice doc:name="Choice">
        <when expression="#[payload]">
            <logger message="Info1" level="INFO" doc:name="Logger"/>
        </when>
        <otherwise>
            <logger message="Default" level="INFO" doc:name="Logger"/>
        </otherwise>
    </choice>
    <ws:consumer config-ref="Web_Service_Consumer" operation="sayHello" doc:name="Web Service Consumer"/>
    <logger message="Andando" level="INFO" doc:name="Logger"/>
</flow>

现在,选择重定向到记录器信息,只是为了知道它在做什么。 例如,我不知道如何在when条件下设置表达式来检查arg0是否具有值choosepath 1

如果有任何帮助,我将不胜感激,
提前感谢

查看本文,根据转换后的xml编写xpath表达式

还要检查如何在mule文档上构建XMLXPath


查看本文,根据转换后的xml编写xpath表达式

还要检查如何在mule文档上构建XMLXPath