If you are using Jetty, I think you can find out the HTTP log somewhere.
And Scott just show you how to log the request and response message in the 
camel route.


--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem




On Tuesday, March 5, 2013 at 4:49 AM, rouble wrote:

> [Re-viving old thread]
>  
> So this shows the communication between the camel proxy box and the
> remote endpoint.
>  
> How do I see the HTTP logs between the client and the camel proxy box?
>  
> Basically, the network topology is Client<=========>Camel
> Proxy<===========>Remote Endpoint
>  
> tia,
> rouble
>  
> > 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 <r.ou...@gmail.com 
> > (mailto:r.ou...@gmail.com)> 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 (http://sully6768.blogspot.com)
> > Twitter: sully6768
>  



Reply via email to