Using WS-Policy in CXF projectsPage added by Andrei ShakirinWS-Policy provides flexible mechanism to activate desired functionality on the client or service sides. Article describes how to define policies in custom CXF projects, implement policy-aware interceptors and explains some aspects of internal CXF design regarding WS-Policy. How to define policiesThere 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>
Change Notification Preferences
View Online
|
Add Comment
|
- [CONF] Apache CXF > Using WS-Policy in CXF projects confluence
- [CONF] Apache CXF > Using WS-Policy in CXF projects confluence
- [CONF] Apache CXF > Using WS-Policy in CXF projects confluence
- [CONF] Apache CXF > Using WS-Policy in CXF projects confluence
- [CONF] Apache CXF > Using WS-Policy in CXF projects confluence
- [CONF] Apache CXF > Using WS-Policy in CXF projects confluence
- [CONF] Apache CXF > Using WS-Policy in CXF projects confluence
- [CONF] Apache CXF > Using WS-Policy in CXF projects confluence
- [CONF] Apache CXF > Using WS-Policy in CXF projects confluence
- [CONF] Apache CXF > Using WS-Policy in CXF projects confluence
