Running the Web Services Gateway sample

The Web Services Gateway sample consists of putting messages through the message flows. To run this sample you can use the Test Client to put input messages to either of the consumer message flows. For more information about the Test Client, see Testing message flows by using the Test Client in the IBM Integration Bus documentation.

If you encounter any problems when you run the sample, see Resolving problems when running samples in the IBM Integration Bus documentation. You might also see an error when you rebuild the BAR files, reporting that a required library is missing from the WebServiceGatewayJava project. See Adding Java code dependencies and check that your installation locations are correct.

Verifying that the provider has the correct properties for the consumer

If you want to verify that your web services consumer is configured correctly, follow the instructions below. If you have set up a TCP/IP Monitor, you have already checked which port the web services provider is using, but you must still configure the consumer to send the messages to your TCP/IP Monitor and then build and redeploy the broker archive (BAR) file.

The default port that web services use is 7800, and the SOAP requests are set up to use this port. However, if this port is already in use, the port number is incremented by one.

To check which port your provider server is using, issue the following mqsireportproperties command:

mqsireportproperties IB9NODE -e WebServiceGatewaySample -o HTTPConnector -n port

Complete the following steps to verify that the port that the SOAPRequest nodes are using is correct, and to override the port of the SOAPRequest node in the BAR files to the port that the provider server is using:

  1. Open the BAR file in each of the sample projects (Address Book and SOAP Node).
  2. Select the manage tab.
  3. Change the port in the URL for the SOAPRequest nodes.
  4. Save the BAR file.

To verify that the port is correct in the configurable service, complete the following steps:

  1. Open MQ Explorer.
  2. Right-click the user-defined configurable service called Gateway, and select the properties.
  3. Change the port of each property, and click Finish.

Running the sample

Choose either the Address Book sample or the SOAP node sample and follow the instructions for running the sample. When you run the samples, the requests are routed through the gateway flow.

Back to sample home