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

Luis Felipe Cabrera, Chris Kurt

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

Policies

Policy assertions are combined into Policies. A policy specifies exactly which assertions must be satisfied. Our example requires each of the custom policies described above to be satisfied, and it allows either US dollars or euros to be used as currency for all applicable messages.

Policy Expression
(01)   <wsp:Policy
(02)       xml:base="http://ex.mspress.microsoft.com/policy" wsu:Id="ORDER">
(03)     <wsp:All>
(04)      <msp:EndpointMaintenanceSchedule>
(05)       <msp:Unavailable day="Sunday" start="0000" end="0200"/>
(06)      </msp:EndpointMaintenanceSchedule>
(07)      <msp:OrderPolicy>
(08)       <msp:DeliveryDelay message="msp:PurchaseOrder" msp:maximum="30"/>
(09)      </msp:OrderPolicy>
(10)      <wsp:ExactlyOne>
(11)       <msp:Currency>EUR</msp:Currency>
(12)       <msp:Currency>USD</msp:Currency>
(13)      <wsp:ExactlyOne>
(14)     </wsp:All>
(15)   </wsp:Policy>