Webサービスの呼び出しを完了する前と要求のコールバック後に要求メッセージを印刷する方法について教えてください
<int:chain input-channel="tmsoapInChannel" output-channel="dest-channel">
<ws:header-enricher>
<ws:soap-action value="http://bnst.l/tm/TWebService/vrrrectieRequest"/>
</ws:header-enricher>
<ws:outbound-gateway uri="http://bnst.l/tm/TWebService" request-callback="WSAHeaderCallback"/>
</int:chain>
<int:logging-channel-adapter id="loggit" log-full-message="true" channel="justLog" />
doWithMessageを実装しましたが、どのようなメッセージが表示されるかを確認したいと思います。
これは、を介して行う方がよいでしょうClientInterceptor
。ただし、Spring WSプロジェクトにはすでに組み込みの機能があります:https://docs.spring.io/spring-ws/docs/3.0.1.RELEASE/reference/#logging
または、からアイデアを借りて、にPayloadLoggingInterceptor
同様のロジックを実装しClientInterceptor
ます。
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加