Ok I have my response:
To keep the soap message header from the consumer to the provider, add the
property
servicemix-http.wantHeadersFromHttpIntoExchange=true
to component.properties
I do not remember having seen this in the documentation :-)
will_mad wrote:
>
>
> will_mad wrote:
>>
>> Ok I got it, here is the code I added in my bean :
>>
>> Map<String, String> headers = new HashMap<String, String>();
>> headers.put("SOAPAction", actionName);
>> savedInputMessage.setProperty(JbiConstants.PROTOCOL_HEADERS, headers);
>>
>> But now my problem is how to get the "soapAction" value of the original
>> soap message, and basically, why the soap header is lost between the
>> consumer and the provider...
>>
>>
>>
>> will_mad wrote:
>>>
>>> Hi,
>>>
>>>
>>>
>>> Here is my flow:
>>>
>>> SOAP-HTTP-CONSUMER => BEAN-SU => SOAP-HTTP-PROVIDER
>>>
>>>
>>>
>>> I would like to add some properties to the soap message header in the
>>> bean
>>> su component before sending it through the http provider.
>>>
>>> More precisely, I would like to add the soapAction value from the
>>> original
>>> message to the message forwarded to the provider.
>>>
>>> Is it possible to do this?
>>>
>>>
>>>
>>> Thanks.
>>>
>>> William
>>>
>>>
>>>
>>
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Add-header-properties-to-a-soap-message-tf4778408s12049.html#a13671135
Sent from the ServiceMix - User mailing list archive at Nabble.com.