In service requester pipelines, a message handler can determine
where to send the web service request by changing the URI. By changing
the URI format, you can choose to perform certain optimizations, such
as starting another requester pipeline or starting a service provider
pipeline without sending the request over the network.
About this task
The web service requester application can populate the DFHWS-URI
container using the EXEC CICS INVOKE SERVICE command
or, if no value is supplied by the application, CICS populates the
container using the value in the web service binding file. To modify
the URI, you must write a message handler that changes the contents
of this container.
Procedure
- Write a message handler to modify the DFHWS-URI container
according to one of the following URI formats:
Each type of URI has additional parameters that you can add
as a query string. For more information about the format of these
URIs and the rules for coding them, see the
DFHWS-URI container.
- Use an XML editor to add the message handler to the pipeline
configuration file:
<service>
<service_handler_list>
<handler>
<program>MYPROG</program>
</handler>
</service_handler_list>
</service>
- Disable, discard, and reinstall the PIPELINE
resource for the requester pipeline to include your new message handler
program in the pipeline.
- Install the message handler program in the CICS region.
Results
The next service request to run through the requester pipeline
is processed by your new message handler.
What to do next
Test out the changes to your requester pipeline to make sure
that the service requests are going to the correct location and that
your message handler program is behaving as designed.