This scenario invokes the Asynch Order Service HTTP 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
HTTPConnector.
- HTTPconnector then finds the XML_Order object that is
a child of the CLIENT_ASYNCH_TLO_Order object.
- The Request business object is converted into an XML message
using the XML data handler. HTTPconnector sends the XML message to
the URL 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. This value should be set to
http or https.
- The XML request is POSTed to the URL. As mentioned earlier, the
same HTTPConnector is listening for the XML request on the same
URL. The connector's protocol listener receives the XML
message.
- The connector converts the XML message into XML_Order and then
creates a SERVICE_ASYNCH_TLO_Order object. The XML_Order
object is set as a child of the SERVICE__ASYNCH_TLO_Order
object.
- HTTPConnector now asynchronously posts the SERVICE_TLO_Order
object to ICS. This completes the asynchronous URL invocation.
Because this is an asynchronous invocation (request-only), no
response is sent back to the HTTP 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 ICS integration broker, if it is not already
running.
- Start the HTTP 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\HTTP\samples\WebSphereICS\OrderStatus
\CLIENT_ASYNCH_TLO_Order.bo
The Test Connector should show that the
CLIENT_ASYNCH_TLO_Order is loaded.
- Verify the HTTP URL address:
- To run the HTTP sample:
- In your Test Connector, make sure that the value of the Handler
attribute for the CLIENT_ASYNCH_TLO_Order business object
is set to http.
- Expand the Request attribute of
CLIENT_ASYNCH_TLO_Order. This attribute is of type
CLIENT_ASYNCH_Order business object.
- Expand the HTTPCfgMO attribute of XML_Order. This
attribute is of type XML_Order_HTTP_CfgMO.
- Make sure the value of the Destination attribute of
XML_Order_HTTP_CfgMO is set to
http://localhost:8080/wbia/http/samples.
- To run the HTTPS sample
- Make sure that the value of the Handler attribute for the
CLIENT_ASYNCH_TLO_Order business object is set to
http even though this is an HTTPS invocation.
- Expand the Request attribute of
CLIENT_ASYNCH_TLO_Order. This attribute is of type
XML_Order business object.
- Expand the HTTPCfgMO attribute of XML_Order.
This attribute is of type XML_Order_HTTP_CfgMO.
- Make sure the value of the Destination attribute of
XML_Order_HTTP_CfgMO is set to
https://localhost:443/wbia/http/samples.
- 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, CustomarId 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.
