package Ġno . nav . kan al . eb ms Ċ Ċ import Ġno . dig ip ost . api . handlers . Eb ms Context Aware WebService Template Ċ import Ġno . dig ip ost . api . represent ations . Eb ms Ak to er Ċ import Ġorg . springframework . ws . client . core . WebService Message Callback Ċ import Ġorg . springframework . ws . client . core . WebService Message Extractor Ċ import Ġorg . springframework . ws . context . Message Context Ċ import Ġorg . springframework . ws . soap . s aa j . S aa j Soap Message Factory Ċ import Ġorg . springframework . ws . transport . WebService Connection Ċ Ċ /* Ċ Could Ġnot Ġfind Ġa Ġgood Ġway Ġof Ġhook ing Ġinto Ġthe Ġcurrent Ġcode Ġto Ġget Ġan Ġinterceptor Ġthat Ġcan Ġdump Ġthe ĠWS Ġcontent , Ġthis Ġway Ċ we Ġcan Ġadd Ġthe Ġconversation Id Ġand Ġa Ġboolean Ġtelling Ġif Ġit Ġshould Ġbe Ġlogged Ġto Ġan Ġinterceptor Ġthat Ġwill Ġbe Ġable Ġto Ġlog Ċ specific Ġmessages . ĠThis Ġis Ġa Ġbit Ġhack y , Ġbut Ġit Ġseems Ġlike Ġit Ġwould Ġrequire Ġa Ġupstream Ġchange Ġor Ġto Ġre implement Ġmore Ġof Ċ the ĠWS Ġcode Ċ Ġ*/ Ċ class ĠE b ms Logging WebService Template ( factory : ĠS aa j Soap Message Factory ?, Ġe b ms Ak to er Remote Party : ĠE b ms Ak to er ?) Ġ: ĠE b ms Context Aware WebService Template ( factory , Ġe b ms Ak to er Remote Party ) Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġ< T Ġ: ĠAny ?> Ġdo Send And Receive ( message Context : ĠMessage Context , Ġconnection : ĠWeb Service Connection , Ġrequest Callback : ĠWeb Service Message Callback , Ġresponse Extractor : ĠWeb Service Message Extractor < T >): ĠT Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( request Callback Ġis ĠLog gable Context ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġmessage Context . setProperty ( CONVER S ATION _ ID _ PROPERTY , Ġrequest Callback . conversation Id ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġmessage Context . setProperty ( SHO ULD _ BE _ LOG GED _ PROPERTY , Ġrequest Callback . shouldBe Logged ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġreturn Ġsuper . do Send And Receive ( message Context , Ġconnection , Ġrequest Callback , Ġresponse Extractor ) ĊĠĠĠ Ġ} Ċ } Ċ