Mule 3.3.1 で生の SOAP 例外応答をログに記録するにはどうすればよいですか? <exception-strategy ref="myStrategy"/>
フローの最後にa を追加すると、次の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
タイプのようです。で SOAP 呼び出しの詳細を確認できます 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"/>