Web Services
  Home arrow Web Services arrow Page 4 - Process Lifecycles and Web Services
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 
Sun Developer Network 
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

Process Lifecycles and Web Services
By: Sams Publishing
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 5
    2006-08-17

    Table of Contents:
  • Process Lifecycles and Web Services
  • Properties and Correlation Sets
  • Invoking Web Services and Providing Web Services
  • Data Handling and Related Activities

  • 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


    Process Lifecycles and Web Services - Data Handling and Related Activities


    (Page 4 of 4 )

    Messages initiate business processes. Processes receive messages from business partners and respond to partners via messages. Every invocation of a Web service that is orchestrated by a process is based on the exchange of messages. All these messages are specified as part of the external interface of the business process, its portTypes.

    Looking at the messages from the point of view of the process definition, BPEL provides the construct for variables to store these messages. Variables are used for

    • Messages that a process receives

    • Messages that are needed as input for the invocation of Web services operations

    • The result of service invocations

    • Intermediate data that the internal business logic might depend on (for example, to compose messages or for conditional logic)

    Variables can be typed either by WSDL message types or by XML schema types: WSDL messages types are to be specified for messages that are exchanged with partners. Variables used only for internal data handling can be typed either way.

    Variables are scoped. They can be globally declared at the process level. BPEL also supports the notion of variables that are local to a BPEL scope (more details on scopes later). The scope of a variable determines its visibility and lifetime. A variable is visible within the scope it's declared in and also to all nested scopes within that scope.

    The purchase order request is an example of a global variable declaration using a message type. Its declaration appears in the variables section of the process:

    <process name="PurchaseOrderProcess"...>
    ...
    <variables>
    ...
    <variable name="poSubmissionRequest"
    messageType=
    "pos:poSubmissionRequest"/> ... </variables>
    ... </process>

    The next snippet shows an example of a local, xsd-type variable. It's declared at the scope level:

    <scope>
    ...  
    <variables>
    ...
    <variable name="itemCount"
    type="xsd:integer"/>
    ...
    </variables>
    ...
    </scope>

    Please check back next week for the continuation of this article.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

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

    Buy this book now. This article is excerpted from chapter 12 of 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

    - 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...
    - WS Notification and WS Topics in the WS Reso...
    - Introducing the Implied Resource Pattern
    - Web Services and Stateful Resources
    - Deploying an EJB Application






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
    Stay green...Green IT