The following should allow you to see both:
from("servlet:///proxyWebService/api/?matchOnUriPrefix=true")
.log("Request message: ${body}")
.to("https4://realWebService:8443/api/?bridgeEndpoint=true&throwExceptionOnFailure=false")
.log("Response message: ${body}");
Hope this helps.
Best Regards,
Scott ES
On Wed, Dec 5, 2012 at 4:38 PM, rouble <[email protected]> wrote:
> I have a camel route setup to proxy a web service as follows:
>
> from("servlet:///proxyWebService/api/?matchOnUriPrefix=true")
>
> .to("https4://realWebService:8443/api/?bridgeEndpoint=true&throwExceptionOnFailure=false");
>
> How can I see the inbound and outbound HTTP Requests and Responses? I
> don't need any other camel logs for my purpose just the wire logs.
>
> tia,
> rouble
>
--
--
Scott England-Sullivan
Apache Camel Committer
Principal Consultant / Sr. Architect | Red Hat, Inc.
FuseSource is now part of Red Hat
Web: fusesource.com <http://www.fusesource.com> |
redhat.com<http://www.redhat.com>
Blog: sully6768.blogspot.com
Twitter: sully6768