Hi Willem, can this be the problem that headers in camel are case insensitive since some 2.x version?
Greetings Christian Christian Schneider Team Handel und Risikomanagement Informationsverarbeitung Business Solutions Trading EnBW Systeme Infrastruktur Support GmbH Informationsverarbeitung Business Solutions Handel und Dispatching Durlacher Allee 93 76131 Karlsruhe Tel : +49-(0)721-63-15482 Mail: [email protected] EnBW Systeme Infrastruktur Support GmbH Sitz der Gesellschaft: Karlsruhe Handelsregister: Amtsgericht Mannheim HRB 108550 Vorsitzender des Aufsichtsrats: Dr. Bernhard Beck Geschäftsführer: Jochen Adenau, Hans-Günther Meier -----Ursprüngliche Nachricht----- Von: Willem Jiang [mailto:[email protected]] Gesendet: Donnerstag, 20. Mai 2010 15:07 An: [email protected] Betreff: Re: camel-http converts headers to lower case Hi Which Camel version are you using? I just checked the camel trunk code, there is no code which turn the headers into lower case. Willem attilav wrote: > Hi everyone, > > I'm trying to use the camel-http to send a soap request, however the camel > exchange headers get converted to lowercase during the http post. Is this a > feature, or bug? Is there a way around it? > > My setup is something like this: > > from("activemq:queue:tempque") > .setHeader(Exchange.HTTP_METHOD, > constant(org.apache.camel.component.http.HttpMethods.POST)) > .setHeader("SOAPAction", constant("http://xxx.com/interfaces/ticket")) > .setHeader("Content-Type", constant("text/xml; charset=utf-8")) > .setHeader("myHeaDer", constant("akarmi head")) > .setHeader("xxxSOAPAction", constant("sakarmi head")) > .to("http://iface.intra:8115/ticket") > > what actually gets sent over the wire is: > > POST /fault_ticket HTTP/1.1 > myheader: akarmi head > soapaction: "http://xxx.com/interfaces/ticket" > xxxsoapaction: sakarmi head > User-Agent: Jakarta Commons-HttpClient/3.1 > Host: iface.nrps.telekom.intra:8115 > Content-Length: 1056 > Content-Type: text/xml; charset=utf-8 > > <soap:Envelope .... > > The remote side is case sensitive on http headers, and complies about an > invalid soap action. > > Thanks > attilav
