Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
WS-BPEL 2.0 Beginner's Guide

You're reading from   WS-BPEL 2.0 Beginner's Guide Design and develop WS-BPEL executable business processes using Oracle SOA Suite 12c

Arrow left icon
Product type Paperback
Published in Sep 2014
Publisher
ISBN-13 9781849688963
Length 388 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (14) Chapters Close

Preface 1. Hello BPEL FREE CHAPTER 2. Service Invocation 3. Variables, Data Manipulation, and Expressions 4. Conditions and Loops 5. Interaction Patterns in BPEL 6. Fault Handling and Signaling 7. Working with Scopes 8. Dynamic Parallel Invocations 9. Human Tasks 10. Events and Event Handlers 11. Compensations A. Pop Quiz Answers Index

Time for action – testing the BPEL process

To test our BPEL process, let's perform the following steps:

  1. Switch to the Web browser and navigate to http://localhost:7101/em/.
  2. Log in with the weblogic username and welcome1 password (or a different password, which you have specified by the creation of the domain).
  3. At the bottom of the screen, you will see the Bookstore application. If you cannot see it, use the scroll bar to find it.
  4. After clicking on it, a new screen will be displayed.
  5. To test the BPEL process, click on the Test button.
  6. We will see a quite complex screen. In the lower part of the screen, we will see the payload with the four parameters, which we defined as input parameters for the BPEL process: BookISSN, Title, Edition, and PublishingYear.
  7. Fill the book ISSN, title, edition, and publishing year. Please note that the publishing year is a date type; therefore, it requires 2014-09-01 syntax, as shown in the following screenshot:
    Time for action – testing the BPEL process
  8. Alternatively, we can switch from Tree View to XML View to get a better understanding that we will send the XML that we defined previously in the XML Schema section. The complete SOAP message is shown in the following screenshot:
    Time for action – testing the BPEL process
  9. Click on the Test Web Service button in the upper-right corner of the screen to invoke our BPEL process.

What just happened?

We invoked our BPEL process. Once the process executes, the view switches to the Response tab where the response of the BPEL process is displayed. If the invocation has been successful, we will see the quantity of 5. Indeed, we can see that the process will return the quantity 5 for a selected book. Again, we can switch between Tree View and XML View:

What just happened?

To see the XML representation, the SOAP response message directly, we can switch to XML View and we will see the following screenshot:

What just happened?

With this, we have successfully tested our first BPEL process. It was an oversimplified BPEL process, which took four parameters as an input (book ISSN, title, edition, and publishing year) and returned the quantity of the book together with the ISSN. Moreover, we hardcoded the quantity to 5 units for simplicity purposes.

You have been reading a chapter from
WS-BPEL 2.0 Beginner's Guide
Published in: Sep 2014
Publisher:
ISBN-13: 9781849688963
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image