You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Claus Ibsen <cl...@gmail.com> on 2018/12/05 09:58:26 UTC

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 <wy...@gmail.com> 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