Hi Lukasz, 1. If the NormalizedMessage that is sent to CXF Provider already contains full SOAP envelope with SOAP headers will it be sent "as is" along with these headers to the target service?
Ashwin --> The SOAP Header is only preserved in the message if the flag SOAP is set to "false" in the HTTP/JMS/CXF consumer.The SOAP header is not lost however if SOAP is set to true. When the exchange is created the SOAP header is stripped and preserved in JBI properties on the exchange. The contents of the SOAP Body are what is sent in the message. The message is now a JBI message and not a SOAP Envelope. 2. What is the other way to tell CXF Provider what SOAP headers headers should it send? Are they taken from some NormalizedMessage properties? If yes, what's should be the name of the property? Ashwin --> If the SOAP flag is set to "false" the message is treated as raw and propagated as is to the next JBI service/endpoint. At this point the payload could be thought of as any valid XML (HTML, ebXML etc) 3. What does CXF Consumer do with SOAP headers when it has the flag useSOAPEnvelope="false" and useJbiWrapper="false" ? Ashwin --> The flag useSOAPEnvelope="false" specifies if the endpoint expects soap messages when useJBIWrapper is false. Hope this helps. Cheers, Ashwin... Lukasz L. wrote: > > hello, > > I have a few questions regarding behavior of CXF Provider in terms of SOAP > Headers: > 1. If the NormalizedMessage that is sent to CXF Provider already contains > full SOAP envelope with SOAP headers will it be sent "as is" along with > these headers to the target service? > 2. What is the other way to tell CXF Provider what SOAP headers headers > should it send? Are they taken from some NormalizedMessage properties? If > yes, what's should be the name of the property? > 3. What does CXF Consumer do with SOAP headers when it has the flag > useSOAPEnvelope="false" and useJbiWrapper="false" ? > > regards > Lukasz > ----- --- Ashwin Karpe, Principal Consultant, PS - Opensource Center of Competence Progress Software Corporation 14 Oak Park Drive Bedford, MA 01730 --- +1-972-304-9084 (Office) +1-972-971-1700 (Mobile) ---- Blog: http://opensourceknowledge.blogspot.com/ -- View this message in context: http://www.nabble.com/SOAP-headers-and-CXF-Provider-tp20893998p20894678.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
