- WS-BPEL 2.0 Beginner's Guide
- Matjaz B. Juric Denis Weerasiri
- 363字
- 2021-08-05 18:01:31
Time for action – testing the BPEL process
To test our BPEL process, let's perform the following steps:
- Switch to the Web browser and navigate to
http://localhost:7101/em/
. - Log in with the
weblogic
username andwelcome1
password (or a different password, which you have specified by the creation of the domain). - At the bottom of the screen, you will see the Bookstore application. If you cannot see it, use the scroll bar to find it.
- After clicking on it, a new screen will be displayed.
- To test the BPEL process, click on the Test button.
- 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.
- Fill the book ISSN, title, edition, and publishing year. Please note that the publishing year is a
date
type; therefore, it requires2014-09-01
syntax, as shown in the following screenshot: - 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:
- 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:

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

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.
- Java Data Science Cookbook
- Libgdx Cross/platform Game Development Cookbook
- 算法與數據中臺:基于Google、Facebook與微博實踐
- OracleDBA實戰攻略:運維管理、診斷優化、高可用與最佳實踐
- 數字媒體交互設計(初級):Web產品交互設計方法與案例
- ZeroMQ
- AI時代的數據價值創造:從數據底座到大模型應用落地
- Oracle 11g+ASP.NET數據庫系統開發案例教程
- 大數據時代系列(套裝9冊)
- 數據庫原理與設計實驗教程(MySQL版)
- 云原生架構:從技術演進到最佳實踐
- Python金融數據挖掘與分析實戰
- 實用數據結構基礎(第四版)
- Tableau數據可視化實戰
- SQL Server從入門到精通(第5版)