Testing CICS SOAP Web services
You can quickly and easily test a Web service without writing a complete client side application just to confirm that the CICS® configuration is correct.
Before you begin
- You must have created a WSDL document using DFHLS2WS that describes a Web service hosted in CICS.
- You must have deployed a WSBind file into CICS.
About this task
Procedure
-
Start a new project by choosing
and select a General project.

- Click on Next and give it a name. In this example, the project is
called 'Test WSDL'.

- Click Finish. You will see that an empty project has been created
in the Package Explorer.

- Right-click on the project and selectImport. Then select a
General import from the File System.

- Navigate to the WSDL document you wish to use:

- Click Finish and you will see your WSDL document in the
Package Explorer.

- You can now view the WSDL in Eclipse:

- Right-click on your WSDL file in Eclipse - in this case it is
testZDec.wsdl - and click . Eclipse
generates a web-based client for the remote Web service.

- Before you can call the Web service you must add the real endpoint information (something
that you could have put in the WSDL before importing it). Do this by clicking
Add and entering the URL that CICS is listening on:

- Click Go and message IWAB0388I appears in the
Status area, announcing that the endpoint was successfully added:

- Use the Navigator to select the operation you wish to invoke. In this example, there is
only one option - NULLPROGOperation.

- Now you can supply values for all of the input parameters. In this example, the
parameters are called test1, test2 and so on.

- Now click Go to send the SOAP message to CICS. The output from the Web service is displayed in Eclipse:In this example, the NULLPROG program in CICS returns the same data it was invoked with.

- Click on the source link to view the actual SOAP messages that
flowed on the wire:

- In this example, you can see that a SOAP Fault message was returned from CICS (field test1 can only have values between 0 and 1, so the value 2 is too
large):
