Web Services Architecture and Its Specifications [Electronic resources] : Essentials for Understanding WS-*

Luis Felipe Cabrera, Chris Kurt

نسخه متنی -صفحه : 130/ 63
نمايش فراداده

Policy Attachment

Policies can be associated with any combination of XML elements, deployed endpoints, WSDL definitions, and UDDI entries. Our sample order management policy is associated with the deployed order processing endpoint through its WSDL definition. The WSDL service definition shown above is expanded to reference its policy.

Policy Attached to WSDL
(64)   <service name="OrderService">
(65)    <port name="OrderBinding" binding="msp:OrderBinding">
(66)     <msp:PolicyReference
(67)         URI="http://ex.mspress.microsoft.com/policy#ORDER" />
(68)     <soap:address
(69)         location="http://ex.mspress.microsoft.com/orders" />
(70)    </port>
(71)   </service>
(71) </definitions>

Lines 6667 The specific policy that is associated with this service is specified by its identifier as an extension of the WSDL port.