camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alberto <abros...@inogs.it>
Subject Re: CXF component doesn't propagate SOAPAction header
Date Wed, 06 Jul 2016 14:19:28 GMT

Solved,

specify soap version 1.2 do the job.

I added the following line to the cxfEndpoint:

<cxf:binding>
	<soap:soapBinding version="1.2"/>
</cxf:binding>

Regards

Alberto



On Wed, 2016-07-06 at 10:52 +0200, Alberto wrote:
> Hello,
> 
> I'm using the cxf component as producer in dispatch mode as specify
> in 
> http://camel.apache.org/cxf.html.
> 
> The endpoint:
> 	<cxf:cxfEndpoint id="myEndpoint" address="http://hostname/servi
> ce/soap">;
> 		<cxf:properties>
>         	<entry key="dataFormat" value="PAYLOAD"/>
>         </cxf:properties>
> 	</cxf:cxfEndpoint>
> 
> 
> The relevant part of the route:
> 
>     		.setHeader(SoapBindingConstants.SOAP_ACTION,
> constant("urn:InsertObservation"))
>     		.to("cxf:bean:myEndpoint")
> 
> Enabling debug I can see:
> 
> ...
> DefaultCxfBinding              DEBUG Propagate to CXF header:
> SOAPAction value: urn:InsertObservation
> ...
> Headers                        DEBUG SOAPAction: ""
> ..
> 
> 
> Using wireshark I can confirm that the SOAPACtion http header is
> empty.
> 
> 
> Is it a bug? Something missing?
> 
> Regards
> 
> Alberto

Mime
View raw message