Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In CXF, elements attached to a wsdl element are available as extensors in the service model representation of that wsdl element: wsp:Policy and wsdp:PolicyReference elements can be obtained through the service model as extensors of type UnknownExtensibilityElement with matching element names (note that these attached elements are not parsed when the service model is built).
Policies attached to their subject through xml element attachment in WSDL 1.1 can therefore be obtained through the service model associated with an endpoint/an operation.

Info
titleUsing PolicyAttachment Documents

The location of documents containing PolicyAttachment documents on the other hand needs to be made known to the framework. This can easily be

...

achived through configuration:

Code Block
java
java
<bean class="org.apache.cxf.ws.policy.attachment.external.ExternalAttachmentProvider">
    <constructor-arg ref="cxf"/>
    <property name="location" value="org/apache/cxf/systest/ws/policy/addr-external.xml"/>
</bean>

...