Re: Changing the jetty:http Content-Type request header

2013-04-05 Thread Chris Geer
On Fri, Apr 5, 2013 at 7:52 AM, William King wrote: > ok, so if camel-jetty accepts the camel-http component options, hopefully a > > def endpointUri = "jetty:http://?**Exchange.CONTENT_TYPE=** > application/soap+xml > > inside an akka producer actor should do the trick. I'll give this a whirl >

Re: Changing the jetty:http Content-Type request header

2013-04-05 Thread William King
ok, so if camel-jetty accepts the camel-http component options, hopefully a def endpointUri = "jetty:http://?Exchange.CONTENT_TYPE=application/soap+xml inside an akka producer actor should do the trick. I'll give this a whirl when I can find a moment and see what happens. thanks again Chri

Re: Changing the jetty:http Content-Type request header

2013-04-04 Thread Chris Geer
On Thu, Apr 4, 2013 at 4:31 PM, William King wrote: > it does, thanks. my confusion arises from not completely understanding how > the > CamelMessage headers are used to build the http request headers by an an > akka actor > I can only speak for camel-jetty but if you look at the component page

Re: Changing the jetty:http Content-Type request header

2013-04-04 Thread William King
it does, thanks. my confusion arises from not completely understanding how the CamelMessage headers are used to build the http request headers by an an akka actor tinkering around, I see a few familiar things int the CamelMessage header (like Content-Length) and some unfamiliar Camel specific

Re: Changing the jetty:http Content-Type request header

2013-04-04 Thread Chris Geer
William, I guess I was responding on how camel-jetty works. If you set the Content-Type header it will use that in the request/return. Can you be more specific in what you are trying to do? I'm not familiar with akka-camel (or scala) but looking at the CamelMessage documentation [1] it does appear

Re: Changing the jetty:http Content-Type request header

2013-04-04 Thread William King
there is no setHeader method on CamelMessage in akka-camel but there are some other header related methods. back to tinkering ... On Thu, 04 Apr 2013 16:48:16 -0500, Chris Geer wrote: Have you tried setHeader("Content-Type", "application/soap+xml")? On Thu, Apr 4, 2013 at 2:46 PM, wpki

Re: Changing the jetty:http Content-Type request header

2013-04-04 Thread Chris Geer
Have you tried setHeader("Content-Type", "application/soap+xml")? On Thu, Apr 4, 2013 at 2:46 PM, wpking wrote: > I'm building a scala/akka-camel SOAP WS client using the jetty:http camel > component. What is the recommended way of changing the Content-Type http > request header to application/

Changing the jetty:http Content-Type request header

2013-04-04 Thread wpking
I'm building a scala/akka-camel SOAP WS client using the jetty:http camel component. What is the recommended way of changing the Content-Type http request header to application/soap+xml ? Thanks in advance for your suggestions. -- View this message in context: http://camel.465427.n5.nabble.com