WSS4J does not work for cxf Endpoint with dataFormat ="MESSAGE" in camel-cxf

Solution Verified - Updated -

Issue

  • WSS4J does not work for cxf Endpoint with dataFormat=MESSAGE.
<cxf:cxfEndpoint id="TestServiceEndpoint"
                     address="/TestService"
                     wsdlURL="wsdl/test.wsdl"
                     serviceName="ws:TestService" endpointName="ws:TestPort"
                     xmlns:ws="http://testmessage">
        <cxf:properties>            
            <entry key="dataFormat" value="MESSAGE" ></entry>
            <entry key="schema-validation-enabled" value="true" ></entry>
            <entry key="faultStackTraceEnabled" value="false" ></entry> 
            <entry key="exceptionMessageCauseEnabled" value="true" ></entry>
            <entry key="ws-security.enable.nonce.cache" value="true"></entry>
            <entry key="ws-security.enable.timestamp.cache" value="true"></entry>
        </cxf:properties>
        <cxf:inInterceptors> 
            <ref bean="inInterceptorWSSecurityImport"></ref>
        </cxf:inInterceptors>
        <cxf:outFaultInterceptors>
            <ref bean="outFaultInterceptorWSSecurityImport"></ref>
        </cxf:outFaultInterceptors>
    </cxf:cxfEndpoint>
  • It works with cxf dataFormat ="PAYLOAD".

Environment

  • Red Hat JBoss Fuse
    • 6.x
  • Apache Camel
    • camel-cxf component
  • Apache CXF

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content