Here you use the Server Explorer in Eclipse to create an enterprise server region on which to run the Web service.
The Server Explorer should now show the CWSPROV enterprise server region listed under Local [localhost:10086] > Default [127.0.0.1:86].
The Region and Server List page in ESCWA is displayed in your default browser.
This opens the General Properties page for the CWSREQ server where you can set environment variables.
[ES-Environment] IDE_PROJECT_LOC=C:\Users\username\workspace\Reverse IDE_LOADLIB=$IDE_PROJECT_LOC\loadlib
All enterprise server regions require access to certain resources, depending on the types of applications they run. Resources that are defined on a region's startup list are loaded during the startup routine, making them available for as long as the region is running.
CICS Web services use the underlying resources provided by the standard Enterprise Server CICS Web interface (CWI) and CICS Web Services (CWS) support. However, the CICSWebServicesTemplate used to create the CWS-PWTD region does not include these resources on the startup list; therefore, you need to add them manually. The CWI resources reside in a predefined resource group named DFHWEB. The CWS resources are in the predefined DFHPIPE group.
In addition, you need to create and define a resource group, MYCWSPRV, to contain the resources required by the Reverse program.
As the region is starting, check the ESCWA UI. When the region is fully started, this is indicated in the region's Status column.
for the
CWSPROV
region.
| Name | CWSTCPIP |
| Description | My TCP/IP Service |
| Port No | 5482 |
| Name | PROVPIPE | |
| Description | My CICS Provider Pipeline | |
| Response Wait Time | Check System Default | This is the number of seconds that an application waits for a response from the service. The default value is 10 seconds for HTTP and 60 seconds for MQ. |
| Config file | $IDE_XML_LOC/basicsoap11provider.xml | The IDE_XML_LOC environment variable in CWS-PWTD points to the xml project folder.1 |
| Web Directory | $IDE_LOADLIB/ | The IDE_LOADLIB environment variable points to the loadlib project folder.2 |
|
1To see a list of environment variables defined for
CWSPROV
, from the list of Directory Servers, click the
2The IDE_LOADLIB environment variable is set automatically when you start the enterprise server region from Server Explorer inside the IDE. |
||
The default way to sort the list of resources is By Group.
The CWSPROV region uses the default startup list, named DEMOSTRT.
(Edit) button that corresponds to
DEMOSTRT. This takes you to the
DEMOSTRT page.
This adds all of these groups to the end of the list.
After CWSPROV is started, you can verify that the resources you have defined are installed and active.
You can install the new resources by stopping and starting the region.
Enterprise Server generates URIMaps to provide CICS with the information it needs to process requests. The name of each generated URIMap begins with a pounds sterling symbol (£).
To run your provider CICS Web service, you send a SOAP request to an endpoint URL that routes the request to your enterprise server region. The endpoint URL contains a URI value. The incoming request reads the installed URIMaps to identify the map whose Path value matches the URI value of the endpoint URL. When the correct URIMap is identified, CICS uses the data defined in the URIMap, such as the name of the Web Service and its associated Pipeline, to process the request.