Now, we need to test if our BPEL is working fine. To test the BPEL process, we create
a new test case. The test involves sending a SOAP request to the BPEL process and
getting the correct SOAP response back from the process.
BPEL Designer
[ 108 ]
The composite application we created will have an empty Test folder. Right-click on
the Test folder and select New Test Case.
Enter TestHello as the name of our test case and click Next to continue.
Chapter 5
[ 109 ]
You need to select the web service to which the SOAP request has to be sent. Select
SayHello.wsdl under HelloBPEL ??“ Source Packages.
Our WSDL has only one operation by the name of SayHelloOperation. Select that
operation and click Finish.
BPEL Designer
[ 110 ]
Once the test case is created, double-click on the Input node to edit Input.xml. Make
changes to the Input.xml as shown in the following code:
"http://schemas.xmlsoap.org/soap/envelope/
http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:say="http://j2ee.netbeans.org/wsdl/SayHello">
BPEL
Now, right-click on TestHello test case and select Run to run the test case.
Pages:
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110