The scenario involves a WebSphere Commerce application with the InFashion store installed and running. The WebSphere Commerce Application can exchange information regarding Orders and Customers to the WebSphere MQ queues defined. We create business object "WCS_Create_WCS_Customer" to match the fields defined in XML messages from WCBE. This scenario sends and receives messages in XML format with the WebSphere InterChange Server (ICS).
We create the template and collaborations needed to deliver business objects between the WebSphere Commerce Adapter and the Port connector. The Port connector is included with every installation of ICS, and as it is comprised of only a connector definition with no underlying code, it acts as a dummy connector for our collaborations. Once started, WCBE can send and receive messages to ICS via WebSphere Commerce Adapter using the WebSphere MQ message broker.
In our scenario we create an order in the Infashion store of WebSphere Commerce to which in turn sends a Purchase order to the connector. The connector uses the XML DataHandler and converts the purchase order to a business object and delivers them to the InterChange server. Using the Test Connector, we simulate the Port connector, retrieve the business object posted by the WebSphere Commerce, and examine the Purchase Order attributes.
In another scenario we will create a customer Business object and send it from the Test connector to the WebSphere commerce Adapter. The WebSphere commerce Adapter will, in turn, convert the business object to XML format and send it to the WebSphere Commerce Application. We can verify this by looking at the customer records in the WebSphere commerce Application. A new customer should be created.