How to Define PoliciesPage edited by Andrei ShakirinChanges (4)
Full ContentThere are basically 3 main possibilities to define WS-Policy in CXF projects:
Let look into them in details. WSDL Policy attachmentWS-Policies can be attached and referenced in WSDL elements. Web Services Policy 1.5 - Attachment standard describes all possible alternatives. WS-Policies can be placed inside WSDL itself or referenced as external documents. CXF will automatically recognize, read and use policies defined or referenced in WSDL. Sample of attached policy is shown below:
<wsdl:definitions name="HelloWorld" targetNamespace="http://apache.org/hello_world_soap_http"
…
<wsdl:service name="SOAPService">
<wsdl:port binding="tns:Greeter_SOAPBinding" name="SoapPort">
<soap:address location="http://localhost:9000/SoapContext/SoapPort"/>
<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy">
<wsam:Addressing xmlns:wsam="http://www.w3.org/2007/02/addressing/metadata">
<wsp:Policy/>
</wsam:Addressing>
</wsp:Policy>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Stop watching space
|
Change email notification preferences
View Online
|
View Changes
|
[CONF] Apache CXF Documentation > How to Define Policies
Andrei Shakirin (Confluence) Mon, 28 Oct 2013 07:44:54 -0700
- [CONF] Apache CXF Documentation > How to D... Andrei Shakirin (Confluence)
- [CONF] Apache CXF Documentation > How... Andrei Shakirin (Confluence)
