Running the asynchronous scenario

This scenario invokes the Asynch Order Service web service. Before running the scenario, review this step-by-step synopsis of its data flow.

  1. A CLIENT_ASYNCH_TLO_Order.Create event originates in the application SampleSAP running in one instance of the Test Connector.
  2. The event is sent from SampleSAP to the collaboration CLIENT_ASYNCH_Order_Collab.
  3. The event is then sent from the collaboration to the Web Services connector.
  4. The Web Services connector finds the CLIENT_ASYNCH_Order object that is a child of the CLIENT_ASYNCH_TLO_Order object.
  5. The Request business object is converted into a SOAP message using the SOAP data handler.
  6. The Web Services connector sends the SOAP Message to the end-point (Destination) of the web service Asynch Order Service. The end-point is provided by the Destination attribute of the Protocol Config Meta-Object (MO). The Protocol Config MO used by the connector depends on the value of the Handler attribute of CLIENT_ASYNCH_TLO_Order. If it is set to soap/http or soap/https, the Destination attribute of CLIENT_ASYNCH_Order_SOAP_HTTP_CfgMO will give the end-point as the URL of the web service. Otherwise if the Handler attribute is set to soap/jms, the Destination attribute of CLIENT_ASYNCH_Order_SOAP_JMS_CfgMO gives the end-point as a destination queue name.
  7. The Asynch Order Service web service receives the SOAP request. As mentioned earlier, the Web Services connector is the end-point for this web service. The connector's protocol listener, listening on the end-point (to which the request was sent), receives the SOAP message.
  8. The connector converts the SOAP message into SERVICE_ASYNCH_Order and then creates a SERVICE_TLO_Order object. The SERVICE_ASYNCH_Order object is set as a child of the SERVICE_TLO_Order object.
  9. The Web Services connector now asynchronously posts the SERVICE_TLO_Order object to ICS. This completes the asynchronous web service invocation.

Because this is an asynchronous web service (request-only), no response is sent back to the web service client. When SERVICE_ASYNCH_Order_Collab receives this object, the collaboration then sends the business object to the application namedSampleSiebel, which is running as the second instance of Test Connector. The object is displayed in the Test Connector. When Reply Success is selected from theSampleSiebel application, the event will be sent back to SERVICE_ASYNCH_Order_Collab.

To run the asynchronous scenario:

  1. Start your ICS integration broker, if it is not already running.
  2. Start the Web Services connector.
  3. Start two instances of the Test Connector.
  4. Using the Test Connector, define a profile for the SampleSAPConnector and the SampleSiebelConnector.
  5. Select FILE"CONNECT AGENT from each Test Connector menu to begin simulating agents.
  6. While simulating the SampleSAPConnector using the Test Connector, select EDIT"LOAD BO from the menu. Load the following file:
    WBI_folder\connectors\WebServices\samples\WebSphereICS\OrderStatus
    \CLIENT_ASYNCH_TLO_Order.bo
    

    The Test Connector should show that the CLIENT_ASYNCH_TLO_Order is loaded.

  7. Verify the web services end-point address:
  8. While simulating the SampleSAPConnector with the Test Connector, click on the loaded Test BO. Select REQUEST"SEND from the menu. See the step-by-step synopsis earlier in this section for more details regarding the flow of the event.
  9. While simulating the SampleSiebelConnector with the Test Connector, select REQUEST"ACCEPT REQUEST. An Event Labeled SERVICE_ASYNCH_TLO_Order.Create is displayed in the right panel of the Test Connector.
  10. Double-click the business object. The business object opens up in a window.
  11. Expand the Request attribute of the business object. The Request attribute is of type SERVICE_ASYNCH_Order. Inspect the OrderId, Customarily and other attributes of SERVICE_ASYNCH_Order to verify the Order received. This completes the execution of asynchronous scenario.
  12. Once you have inspected the business object, close the window. Select REQUEST "REPLY" SUCCESS.

Copyright IBM Corp. 1997, 2004