Can I create a JAX-WS endpoint with an "Optional" WS-RM feature in JBoss WS ?

Solution Verified - Updated -

Issue

  • In our web services we would like to support Web Services with Reliable Messaging (WS-RM).
  • To enable WS-RM in JBoss we added a policy in the WSDL:
    <wsdl:binding name="SampleServiceSoapBinding" type="tns:SampleService">
        <wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy">
            <wsam:Addressing xmlns:wsam="http://www.w3.org/2007/02/addressing/metadata"
                wsp:Optional="true" />
            <wsrmp:RMAssertion xmlns:wsrmp="http://schemas.xmlsoap.org/ws/2005/02/rm/policy"
                wsp:Optional="true" />
        </wsp:Policy>
        ...
  • According to the WS-RM Policy 1.0 (2005/02):

    Per WS-Policy [WS-Policy], this is compact notation for two policy alternatives, one with and one without the assertion. The intuition is that the behavior indicated by the assertion is optional, or in this case, that WS-ReliableMessaging MAY be used.

  • We would like to create web services with an optional WS-ReliableMessaging feature. Is this possible?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.0.x
    • 6.1.x
    • 6.2.x
  • JBossWS-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