I'm trying some samples of effective policies combining multiple levels
of attachment in the WSDL. It looks like it works fine when I attach at
the wsdl:binding level and wsdl:binding/operation level, but not at the
wsdl:binding/operation/input|output level. Is message-level policy
attachment not supported by CXF?

The attached policy is one example I've tried, where the 'addBook'
operation defines both an operation-level policy and an input-message
policy:

    <wsdl:operation name="addBook">
 
      <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy";
URI="#SymmSign"/>

      <wsdlsoap:operation soapAction="urn:addBook"/>

      <wsdl:input name="addBookRequest">
        <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy";
URI="#UsernameToken"/>
        <wsdlsoap:body use="literal"/>
      </wsdl:input>

When I look at the data on the wire I don't see the UsernameToken being
generated, but the server accepts the messages anyway.

  - Dennis

-- 
Dennis M. Sosnoski
XML and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117

Attachment: library-effective.wsdl
Description: application/wsdl

Reply via email to