Skip to main content

skip to main content

developerWorks  >  Rational | SOA and Web services  >

IBM Enterprise Modernization for System z: Wrap existing COBOL programs as Web Services with IBM Rational Developer for System z

Extend value of existing enterprise software assets

developerWorks
Go to the previous pagePage 6 of 10 Go to the next page

Document options
PDF format - Fits A4 and Letter

PDF - Fits A4 and Letter
1693 KB

Get Adobe® Reader®

Discuss


My developerWorks needs you!

Connect to your technical community


Rate this tutorial

Help us improve this content


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.

  1. 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
Using the Project Explorer

  1. 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.
  2. 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
The Web Services Explorer

  1. 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
The Operation

  1. 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.
  2. 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
Invoking the operation

  1. Note that the message "…successfully opened" displays in the Status section.
  2. 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
Invoking the 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.

  1. 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
The SOAP envelopes

  1. You can test with customer numbers from 1 to 10. After you are done testing, close the Web browser using Ctrl+Shift+F4.
  2. Reset the Enterprise Service Perspective by selecting Window > Reset perspective
  3. If you are done, close Rational Developer for System z.

You have completed the tutorial.



Back to top



Go to the previous pagePage 6 of 10 Go to the next page