Book Image

SOA and WS-BPEL

By : Yuli Vasiliev
Book Image

SOA and WS-BPEL

By: Yuli Vasiliev

Overview of this book

<p>When utilized within a Service-oriented Architecture (SOA), Web Services are part of a business process determining the logical order of service activities &acirc;&euro;&ldquo; logical units of work performed by one or more services. Today, the most popular tool for organizing service activities into business processes is Web Services Business Process Execution Language (WS-BPEL), a language defining an execution format for business processes operating on Web Services. While it is not a trivial task to define a business process definition with WS-BPEL from scratch, using a graphical WS-BPEL tool can significantly simplify this process.<br /><br />Examples and practice are much more valuable than theory when it comes to building applications using specific development tools. Unlike many other books on SOA in the market, this book is not focused on architecture. Instead, through numerous examples, it discusses practical aspects of SOA and WS-BPEL development, showing you how to apply architecture in practice with the help of PHP, ActiveBPEL open-source engine, and ActiveBPEL Designer &acirc;&euro;&ldquo; powerful development tools available for free.</p>
Table of Contents (13 chapters)
SOA and WS-BPEL
Credits
About the Author
About the Reviewer
Preface
Free Chapter
1
Web Services, SOA, and WS‑BPEL Technologies

Transmitting Complex Type Data


In the preceding example, you simply send a string representing a PO XML document as the input argument of the placeOrder method exposed by the PO Web service. Now that you have modified the WSDL document describing the PO Web service so that the PO Web service receives a PO XML document conforming to a specific structure, you cannot send that document as a simple string any more.

The following sections explain in detail how the complex type data structures are transmitted between SOAP nodes built with the PHP SOAP extension.

Exchanging Complex Data Structures with PHP SOAP Extension

Like any other SOAP-based interfaces, service providers and service consumers built with the PHP SOAP extension use XML format when it comes to exchanging structured and typed data. However, in the case of the PHP SOAP extension you are not supposed to provide an XML document ready for transmitting. Instead, you provide an array having an appropriate structure and containing all...