Hello,
i'm completely new in Camel and i have a SOAP header problem.
I'm realizing a web service proxy. The java client sets a variable in SOAP
headers that will determine to which server the web service request should
be sent.
At first, I realized a "proof of concept" with one client and dataformat to
Message. The proxy works perfectly.
My route
from("cxf:bean:mycxfBean?dataFormat=MESSAGE")
.to("log:input")
.to("http://WSadress...)
.to("log:output");
and my application-context.xml :
...
<cxf:cxfEndpoint id="mycxfBean" .... />
...
<camelContext id="camel" trace="true"
xmlns="http://camel.apache.org/schema/spring">
<camel:routeBuilder ref="constructionRoute"/>
</camelContext>
...
But when i want to adapt the camel route with value of "road", i could'nt
find the variable in SOAP headers (i created a processor in order to search
the variable in exchange.getIn.getHeaders, exchange.getBody ....). If I
analyze network packets, my headers are propagated through my proxy with the
correct value. I just can not retrieve the value.
If I change the dataformat to PAYLOAD, the proxy no longer works (HTTP
operation failed invoking http://..... with statusCode: 500).
Where can i find my variable ? is there a possibility that I can retrieve my
variable with an interceptor while keeping the message option for dataformat
?
Any help is welcome (documentation, example, ....)
Sorry for my english...
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-and-headers-tp5729277.html
Sent from the Camel - Users mailing list archive at Nabble.com.