Notifications and Resources in the WS-Resource Framework
This article concludes our discussion of the WS-Resource Framework, a set of proposed standards that formalizes the relationship between Web services and state. In this part, we finish covering notifications and go into greater detail about resources. It 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).
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"):