About the Web Service sample

The Web Service sample has two parts:

About the Web Service Host sample

The Web Service Host sample demonstrates how to provide a legacy application as a Web service. In this sample, the supplied legacy application is called by sending a WebSphere MQ message to a queue. The format of this message is mapped to a C header file.

The sample comprises two message flow paths, implemented in a single message flow. The message flow is designed so that multiple instances of the Web service can run concurrently. This is achieved by storing the HTTP context (the reply identifier) in a "state" queue along with the correlation identifier of the message sent to the legacy application.

About the Web Service Client sample

The Web Service Client sample demonstrates how a message flow can be a client to a Web service. The Web Service Client sample calls the Web Service Host sample. Note that although the message structures used by the Web Service Client sample are the same as the message structure in the Web Service Host sample, a different message set is used. This is because it was considered important to demonstrate the WSDL import facility.

The message flow performs the following actions:

  1. A legacy message is received using WebSphere MQ transport.
  2. A Web service request is built using data from the message.
  3. The Web service request is sent using HTTP transport.
  4. The Web service reply message is received using HTTP transport.
  5. A new message in the legacy format is built using data from the Web service reply.
  6. This message is sent to a WebSphere MQ reply queue.

Back to sample home