Discussion:
could not display ${out.body} at Log for external soap service provider
Wang Yan
2018-11-21 12:49:06 UTC
Permalink
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
2018-12-05 09:58:26 UTC
Permalink
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
Post by Wang Yan
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
Continue reading on narkive:
Search results for 'could not display ${out.body} at Log for external soap service provider' (Questions and Answers)
5
replies
can i get question answer of asp.net ?
started 2006-10-11 00:02:47 UTC
software
Loading...