|  | Use the Web Services Explorer to test the CICS-based Web service
You are now ready to invoke the Web Service created on CICS. You will use the
generated WSDL, and invoke the CICS Services using Rational Developer for System
z.
- Using the EST Project Explorer view, right-click LAB324.wsdl
under the project LAB3_CICS-Services, and select Web Services > Test
with Web Services Explorer, as shown in Figure 34.
Figure 34. Using the EST
Project Explorer
- Be patient (you are under VMWARE). After a while, the Web Services Explorer will launch in a Web Browser view, as shown in Figure 35.
- You may need to resize the view to see all areas of the Web Services
Explorer, or you can double-click the Web Services Explorer title to
display the full screen.
Figure 35. The Web Services
Explorer
- Click the link for the LAB324Operation operation within the Actions section,
(alternatively, you can click the + sign next to LAB324Binding and
expand the view to display the LAB324Operation, as shown in Figure 36.
Figure 36. The LAB324 Operation
- Notice that the Actions section is now replaced with information about the
LAB324Operation operation and the parameters that it takes. It also
lists the endpoint associated with this request.
- Click LAB324Operation, enter a value of
4 for CustNo, and click Go to invoke
the operation, as shown in Figure 37.
Figure 37. Invoking the LAB324 Operation
- Note that the message "…successfully opened" displays in the Status section.
- Resize the Status section and you should see the results shown in Figure 38. Click Source to
see the SOAP Envelopes.
Figure 38. Invoking the WSDL Operation
 |
What you have done so far
You have generated the COBOL converter and the necessary CICS resources to
invoke LAB3POT as CICS Web Services. You have tested the created Web Service.
|
|
- You will see the XML SOAP envelopes with the input and output messages, as shown in Figure 39 (you
may need to resize it again).
Figure 39. The XML SOAP envelopes
- You can test with customer numbers from 1 to 10. After you are done testing,
close the Web browser using Ctrl+Shift+F4.
- Reset the Enterprise Service Perspective by selecting Window > Reset
perspective
- If you are done, close Rational Developer for System z.
You have completed the tutorial.
|  |
|