Web Services
  Home arrow Web Services arrow Page 5 - Notifications and Resources in the WS-Reso...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WEB SERVICES

Notifications and Resources in the WS-Resource Framework
By: Sams Publishing
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2006-07-20

    Table of Contents:
  • Notifications and Resources in the WS-Resource Framework
  • Notification Consumers
  • Resource Lifetime
  • Initializing Termination Time
  • Notification of WS-Resource Termination
  • Other WS-Resource Framework Specifications

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Notifications and Resources in the WS-Resource Framework - Notification of WS-Resource Termination


    (Page 5 of 6 )

    WS-ResourceLifetime also standardizes the way WS-Notification can be used to inform interested parties about the termination of a WS-Resource. There is a standardized topic (recall the topics concept we discussed in the section "Topics") in the WS-ResourceLifetime namespace ResourceTermination. Requestors can use this topic to subscribe for a notification message when a WS-Resource of interest is terminated.

    In order for this facility to work, the following pieces must be in place:

    • The Web service component of the WS-Resource must support the notification producer operations (for example, the subscribe operation).

    • The Web service component of the WS-Resource must include the wsrl:ResourceTermination topic in its list of topics (recall the Topics resource property described in the section "Resource Properties of a Notification Producer").

    SkatesTown's POPortType Web service supports generating the notification messages on the ResourceTermination topic as described earlier. The Skateboard Warehouse can issue a subscribe operation as follows to register interest in when a PurchaseOrder WS-Resource is destroyed:

    <soap:Envelope
    ...
    <soap:Header>
    ...
    <!-- the reference property to id the PO -->
    <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:TopicExpression dialect= "http://www.ibm.com/xmlns/stdwip/web-
    services/WS-Topics/TopicExpression/
    simple"> wsrl:ResourceTermination </wsnt:TopicPathExpression> ...
    </wsnt: Subscribe> </soap:Body> </soap:Envelope>

    When the PurchaseOrder WS-Resource is terminated, a notification message will be delivered to the notification consumer indicating (among other information) the time the WS-Resource was terminated and the reason for its termination. WS-ResourceLifetime specifies that the notification message must contain an element of the following form:

    <wsrl:TerminationNotification>
    <wsrl:TerminationTime>xsd:dateTime</wsrl:
    TerminationTime> <wsrl:TerminationReason>xsd:any</wsrl:
    TerminationReason>? </wsrl:TerminationNotification>

    More Web Services Articles
    More By Sams Publishing


       · This article is an excerpt from the book "Building Web Services with Java: Making...
     

    Buy this book now. 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.

    WEB SERVICES ARTICLES

    - Safety, Idempotence, and the Resource-Orient...
    - The Resource-Oriented Architecture in Action
    - Features of the Resource-Oriented Architectu...
    - The Resource-Oriented Architecture
    - Getting Started with Flex
    - Automated Billing and Faxing for the Web
    - An Introduction to Web Services
    - The Foundations of Web Services: From Novice...
    - Web Services Reengineering: Finishing Touches
    - Fault Handling with Web Services
    - Flow and Web Services
    - Process Lifecycles and Web Services
    - Business Processes and Web Services
    - Orchestrating Web Services
    - Notifications and Resources in the WS-Resour...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek