Notifications and Resources in the WS-Resource Framework - Initializing Termination Time
(Page 4 of 6 )
For those WS-Resources that use the scheduled termination mechanism, there is no standard way for the requestor to initialize the termination time when the WS-Resource is created. There are several examples (the subscribe request in WS-Notification, for instance) where the application-specific semantic of a component of the request message is to initialize the termination time of a WS-Resource. Part of the subscribe request message is an optional InitialTerminationTime element. Here is a complete subscribe request from the partial example shown earlier (in the section "Subscribing for Notification"):
<soap:Envelope
xmlns:wsnt=
"http://www.ibm.com/xmlns/stdwip/web-
services/WS-BaseNotification"
xmlns:wsrl=
"http://www.ibm.com/xmlns/stdwip/web-
services/WS-ResourceLifetime"
...
<soap:Header>
<wsa:Action> http://www.ibm.com/xmlns/stdwip/web-
services/WS-BaseNotification/Subscribe
</wsa:Action>
...
<poRP:POResourceID>43871</poRP:POResourceID>
</soap:Header>
<soap:Body>
<wsnt:Subscribe>
<wsnt:ConsumerReference>
<wsa:Address> http://www.skateboardwarehouse.com/
services/inventoryManagement
</wsa:Address>
</wsnt:ConsumerReference>
...
<wsnt:InitialTerminationTime>
2004-03-01T00:00:00.00000Z
</wsnt:InitialTerminationTime>
</wsnt: Subscribe>
</soap:Body>
</soap:Envelope>
Next: Notification of WS-Resource Termination >>
More Web Services Articles
More By Sams Publishing
|
This article is excerpted from chapter 8 of the book Building Web Services with Java: Making sense of XML, SOAP, WSDL, and UDDI, written by Steve Graham et al. (Sams; ISBN: 0672326418). Check it out today at your favorite bookstore. Buy this book now.
|
|