如何使用 Mule 3.3.1 记录原始 SOAP 异常响应?当我<exception-strategy ref="myStrategy"/>
在流程的末尾添加一个并myStrategy
定义如下时:
<choice-exception-strategy name="myStrategy">
<catch-exception-strategy when="exception.causedBy(com.example.ServiceException)">
<logger message="Caught a service exception" level="INFO" />
<!-- <logger message="what to put here to get SOAP response?" level="INFO"/> -->
</catch-exception-strategy>
<catch-exception-strategy doc:name="Catch Exception Strategy">
<logger level="INFO" doc:name="Logger"/>
</catch-exception-strategy>
</choice-exception-strategy>
我希望能够输出原始 SOAP 响应。
消息有效负载似乎属于该payload=org.apache.commons.httpclient.methods.PostMethod
类型。我可以在 OUTBOUND scoped properties
.
流程的相关部分如下所示:
<https:outbound-endpoint exchange-pattern="request-response" host="hostAddress" port="portNumber" path="path/to/service" doc:name="HTTP" connector-ref="connector" responseTimeout="50000" >
<cxf:jaxws-client clientClass="com.example.Service"
enableMuleSoapHeaders="true" doc:name="SOAP" operation="methodName"
port="PortName"
wsdlLocation="wsdl/wsdlName.wsdl">
</cxf:jaxws-client>
</https:outbound-endpoint>
<exception-strategy ref="myStrategy" doc:name="Reference Exception Strategy"/>