You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by hanusto <ha...@gmail.com> on 2014/12/02 14:19:46 UTC
Problem with getting SOAP Header from response for spring-ws
Hello,
we have problem with getting SOAP Header
(SpringWebserviceConstants.SPRING_WS_SOAP_HEADER) from response. For
communication we use spring-ws.
Response looks like:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:test="http://www.test.com">
<soapenv:Header>
<test:sessionId>asdasdasd</test:sessionId>
</soapenv:Header>
<soapenv:Body>
<test:LoginResponse/>
</soapenv:Body>
</soapenv:Envelope>
when we call
exchange.getIn().getHeader(SpringWebserviceConstants.SPRING_WS_SOAP_HEADER),
we retrieve SOAP Header for request, no for response. In source code of
spring-ws component I see that this is not at all solved. Please is there
any solution how to get SOAP Header from response?
Tomas
--
View this message in context: http://camel.465427.n5.nabble.com/Problem-with-getting-SOAP-Header-from-response-for-spring-ws-tp5759949.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Problem with getting SOAP Header from response for spring-ws
Posted by hanusto <ha...@gmail.com>.
Hi,
whole spring-ws component is cumbersome for processing of SOAP Header -
outgoing with configuration that and parsing from response. For example
check it:
http://leakfromjavaheap.blogspot.cz/2014/05/multiple-soap-headers-in-apache-camels.html.
On project I need send multiple soap header element without root element and
also parse retrieved SOAP Header from response. I use as on the link
ClintInterceptor maybe we can add possibility how to solve better without
implement everything around.
Tomas
--
View this message in context: http://camel.465427.n5.nabble.com/Problem-with-getting-SOAP-Header-from-response-for-spring-ws-tp5759949p5760183.html
Sent from the Camel - Users mailing list archive at Nabble.com.