Ariba Supplier OnRamp 7.1 | webMethods Ariba Supplier OnRamp Documentation | webMethods Ariba Supplier OnRamp Installation and User’s Documentation | Running the Example Punchout Site | The Configuration of the Example Punchout Site | The PunchOutOrderMessage Mapping Service
 
The PunchOutOrderMessage Mapping Service
In this demonstration package, the Configuration Module of Ariba Supplier OnRamp was used to generate a PunchOutOrderMessage mapping service to map the shopping cart data record to a PunchOutOrderMessage. Following are characteristics of this service:
*The mapping service is defined in wm.b2b.cxml.example.snowboardSupplier.messageHandlers:createPunchOutOrderMessage.
*The mapping service was configured to accept the shopping cart data as an XML document from the shopping cart system.
*The implementation of the service maps the shopping cart data passed from the shopping system into the PunchOutOrderMessage. The mapping service invokes the service wm.b2b.cxml.example.snowboardSupplier.messageHandlers:shoppingCartToCXMLItemListto convert the shopping cart data into the PunchOutOrderMessage.The mapping service also sets the PunchOutOrderMessageenvelope fields using the wm.b2b.cxml.messages:createCXMLEnvelope service.
*The mapping service was configured to return the PunchOutOrderMessage as a URL encoded string.
The simulated catalog system uses HTTP post to send an XML document describing the shopping cart system. This is simulated using the service wm.b2b.cxml.example.snowboardSupplier.shoppingcart:getPunchOutOrderMessageFromCart.
The format of the XML shopping cart document is represented by the record wm.b2b.cxml.example.snowboardSupplier.shoppingcart:ShoppingCart_BoundNode. The record contains the sub-record corresponding to the root of the XML document sent to the mapping service.