Metadata Exchange
Before interacting with the Order Processing endpoint, the School of Fine Art's procurement system can retrieve the endpoint's policy description to verify that all the requirements will be met when sending messages. The policy can be retrieved using the Get Policy request defined in WS-MetadataExchange.
Line 03 The GetPolicy request is sent to the order management endpoint. The request is for this endpoint's policy.Lines 0507 This value for the Action element indicates that this is a Get Policy message. It must be sent in all Get Policy requests.Line 09 The body of this message is empty.
WS-MetadataExchange Get Policy
(01) <env:Envelope>
(02) <env:Header>
(03) <wsa:To>http://ex.mspress.microsoft.com/orders</wsa:To>
(04) <wsa:ReplyTo>http://fineartschool.net/orders</wsa:ReplyTo>
(05) <wsa:Action>
(06) http://schemas.xmlsoap.org/ws/2004/03/mex/GetPolicy/Request
(07) </wsa:Action>
(08) </env:Header>
(09) <env:Body/>
(10) </env:Envelope>
Get Policy Response
The order management endpoint then returns a Get Policy Response message to the school procurement service. An example of this message is shown here:
WS-MetadataExhange Get Policy Response
(01)<env:Envelope>
(02) <env:Header>
(03) <wsa:To>http://fineartschool.net/orders</wsa:To>
(04) <wsa:Action>
(05) http://schemas.xmlsoap.org/ws/2004/03/mex/GetPolicy/Response
(06) </wsa:Action>
(07) </env:Header>
(08) <env:Body>
(09) <wsx:GetPolicyResponse>
(10) <wsp:Policy
(11) xml:base="http://ex.mspress.microsoft.com" wsu:Id="ORDER">
...
(12) </wsp:Policy>
(13) </wsx:GetPolicyResponse>
(14) </env:Body>
(15)</env:Envelope>