Web Services
  Home arrow Web Services arrow Page 2 - Business Processes 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 
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

Business Processes and Web Services
By: Sams Publishing
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2006-08-10

    Table of Contents:
  • Business Processes and Web Services
  • WSDL Extensions for Interactions with a Business Process
  • Overall Structure of a Process
  • Basic and Structured 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


    Business Processes and Web Services - WSDL Extensions for Interactions with a Business Process


    (Page 2 of 4 )

    A business process can invoke Web services provided by other partners, provide Web services invoked by other partners, or both. The latter case can be an asynchronous response or a complex conversation that involves multiple messages flowing in both directions.

    Each side of such a conversation provides Web services that are invoked by the other side. In order to describe the relationship between the two Web services, BPEL introduces a WSDL extension called partnerLinkTypes. PartnerLinkTypes contain one or two roles, which define the responsibilities of each side of the conversation. If only one partner offers a service and the other partner is only consuming this service without offering a callback operation, then the partnerLinkType only contains one role.

    The role element of the partnerLinkType refers to a WSDL portType, where one partner provides one-way or request-response operations that are consumed by the other partner. Notification or solicit-response operations, described in Chapter 4, aren't supported; they're modeled by using one-way or request-response operations provided by the other side.

    The following example shows the partnerLinkType for the SkatesTown portType discussed previously. This partnerLinkType has only one role: seller. The buyer role only initiates the process and doesn't offer Web service interfaces. Therefore, it isn't needed here:

    <plnk:partnerLinkType
    name="purchaseOrderPartnerLinkType"> <plnk:role name="seller"> <plnk:portType name="pos:poSubmissionPortType"/> </plnk:role> </plnk:partnerLinkType>

    The seller role references the portType of the Web service provided to customers by SkatesTown. The implementation of this service is a BPEL process. The process refers to the portTypes that are named in the partnerLinkType roles.

    In the next snippet, a partnerLinkType is shown that has two roles pointing to different portTypes. In this example, two partners are interacting with each other, and the portTypes of both partners are respectively referred to by the two roles. The portType of the seller role is another interface provided by the SkatesTown business process. It's used for asynchronous callbacks associated with an operation provided by the supplier role:

    <plnk:partnerLinkType
    name="orderSuppliesPartnerLinkType"> <plnk:role name="supplier"> <plnk:portType
    name="sup:orderSuppliesPortType"/> </plnk:role> <plnk:role name="seller"> <plnk:portType
    name="sup:orderSuppliesCallbackPortType"/> </plnk:role> </plnk:partnerLinkType>

    Later, we'll discuss two additional WSDL extensions: property and property alias definitions.

    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 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

    - 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