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 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.