codehaus


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: could not display ${out.body} at Log for external soap service provider


Hi

Just use ${body}

Also mind about logging streaming data, you may only be able to read
it once. See this FAQ
http://camel.apache.org/why-is-my-message-body-empty.html
On Wed, Nov 21, 2018 at 1:49 PM Wang Yan <wyanbox@xxxxxxxxx> wrote:
>
> i already got reply from to uri which is mock soap service (external soap
> provider)
> but why i could not see it in log with ${out.body}
> i think soap is InOut exchangepattern, it should have out.body always
> my code example looks like below
>
> Any hints are more than welcome!
>
> <from uri="cxf://http://{{soap.ip}}:{{soap.port}}/{{soap.service}}?dataFormat=MESSAGE&amp;wsdlURL=wsdl%2Fmyservice.wsdl";
> />
> <convertBodyTo type="java.lang.String" />
> <log message="##### Before Mock Service in.body ##### ${in.body}"
> loggingLevel="INFO" />
> <to uri="http4://localhost:8888/mockservice"/>
> <log message="##### Before Mock Service out.body ##### ${out.body}"
> loggingLevel="INFO" />



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2