CXF doesn't set the SOAPAction header in Fuse 6.3

Solution Verified - Updated -

Issue

  • The issue, CXF-6732 removed the below codes, if condition from the SoapPreProtocolOutInterceptorclass and this is causing theSOAPAction` header to an "" (empty String).
  • The reason for this seems to be that Dispatch client instances seem to include multiple SOAPAction headers in the PROTOCOL while its first invocation, so that check is removed.

However, this is causing the normal camel-cxf route with PAYLOAD data format to not set the SOAPHeader.

This is the difference,

Fuse 6.2:

if (!reqHeaders.containsKey(SoapBindingConstants.SOAP_ACTION))
{ reqHeaders.put(SoapBindingConstants.SOAP_ACTION, Collections.singletonList(action)); }

Fuse 6.3:

reqHeaders.put(SoapBindingConstants.SOAP_ACTION, Collections.singletonList(action));

Environment

  • Red Hat JBoss Fuse
    • 6.3.x
  • Camel-CXF component

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.