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.
- A CLIENT_ASYNCH_TLO_Order.Create event originates in the application SampleSAP running in one instance of the Test Connector.
- The event is sent from SampleSAP to the collaboration CLIENT_ASYNCH_Order_Collab.
- The event is then sent from the collaboration to the Web Services
connector.
- The Web Services connector finds the CLIENT_ASYNCH_Order object that is a child of the CLIENT_ASYNCH_TLO_Order object.
- The Request business object is converted into a SOAP message
using the SOAP data handler.
- 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, 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.
- 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.
- 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.
- 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:
- Start your InterChange Server integration broker, if it is not
already running.
- Start the Web Services connector.
- Start two instances of the Test Connector.
- Using the Test Connector, define a profile for the SampleSAPConnector and the SampleSiebelConnector.
- Select FILE"CONNECT AGENT from
each Test Connector menu to begin simulating agents.
- 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.
- Verify the web services end-point address:
- For SOAP/HTTP web service If you want
to use SOAP/HTTP:
- Make sure you have configured the Web Services connector for SOAP/HTTP.
In your Test Connector, make sure that the value of the Handler
attribute for the CLIENT_ASYNCH_TLO_Order business object is set to soap/http. No quotes are allowed in this value.
- Expand the Request attribute of CLIENT_ASYNCH_TLO_Order. This attribute is of type CLIENT_ASYNCH_Order business object.
- Expand the SOAPHTTPCfgMO attribute of CLIENT_ASYNCH_Order. This attribute is of type CLIENT_ASYNCH_Order_SOAP_HTTP_CfgMO.
- Make sure the value of the Destination attribute of CLIENT_ASYNCH_Order_SOAP_HTTP_CfgMO is set to http://localhost:8080/wbia/webservices/samples. No quotes are allowed in this value.
- For SOAP/HTTPS web service If you want
to use SOAP/HTTPS:
- Make sure that you have configured the Web Services connector
for SOAP/HTTPS. In your Test Connector, make sure that the value
of the Handler attribute for the CLIENT_ASYNCH_TLO_Order business object is set to soap/http. No quotes are allowed in this value.
- Expand the Request attribute of CLIENT_ASYNCH_TLO_Order. This attribute is of type CLIENT_ASYNCH_Order business object.
- Expand the SOAPHTTPCfgMO attribute of CLIENT_ASYNCH_Order. This attribute is of type CLIENT_ASYNCH_Order_SOAP_HTTP_CfgMO.
- Make sure the value of the Destination attribute of CLIENT_ASYNCH_Order_SOAP_HTTP_CfgMO is set to https://localhost:8443/wbia/webservices/samples. No quotes are allowed in this value.
- For SOAP/JMS web service If you want to
use SOAP/JMS:
- Make sure you have configured the Web Services connector for SOAP/JMS.
In your Test Connector, make sure that the value of the Handler
attribute of the CLIENT_ASYNCH_TLO_Order business object is set to soap/jms. No quotes are allowed in this value.
- Expand the Request attribute of CLIENT_ASYNCH_TLO_Order. This attribute is of type CLIENT_ASYNCH_Order business object.
- Expand the SOAPJMSCfgMO attribute of CLIENT_ASYNCH_Order. This attribute is of type CLIENT_ASYNCH_Order_SOAP_JMS_CfgMO.
- Make sure the value of the Destination attribute of CLIENT_ASYNCH_Order_SOAP_JMS_CfgMO is set to ORDER_INPUT. No quotes are allowed in this value.
- 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.
- 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.
- Double-click the business object. The business object opens
up in a window.
- 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.
- Once you have inspected the business object, close the window.
Select REQUEST "REPLY" SUCCESS.
