Ariba Supplier OnRamp 7.1 | webMethods Ariba Supplier OnRamp Documentation | webMethods Ariba Supplier OnRamp Installation and User’s Documentation | Implementing a Punchout Ordering System without Trading Networks | Mapping PunchOutOrderMessages | Passing Shopping Cart Data Using HTTP Form Posting
 
Passing Shopping Cart Data Using HTTP Form Posting
 
Using Generated Mapping Services with the HTTP Form Post
Passing in an HTML Template
*To use HTTP form posting to map PunchOutOrderMessages
1. Using Designer, create a simple record to represent the shopping cart.
The record must be a BoundNode representing the XML document that the shopping cart system will send to this service representing the shopping selection. That is, a BoundNode is a record containing only one field, which is a record. The name of the sub-record field is the name of the root element that the XML document represents.
2. In the Ariba OnRamp menu, select Config. The Ariba Supplier OnRamp Configuration screen appears.
3. Click the Create Mapping Service button next to the PunchOutOrderMessage Mappinglabel to begin creating a mapping service.
4. Complete the following fields:
In this field…
Specify…
Mapping Service Name
The name of the service to be created for the handler. Type the name in the following format:
folderName:serviceName
Package
The package in which to create the service.
ResultFormat
The format in which you want your mapping service to return the PunchOutOrderMessage to the catalog system (URL encoded, base-64 encoded, or raw string).
ResponseType
How to return the PunchOutOrderMessage. Select HTTP Response.
ShoppingCart Record Name
The name of the record you created to represent the Shopping Cart. Type the name in the following format:
folderName:serviceName
Ariba Supplier OnRamp generates a mapping service stub. The mapping service stub will contain the shopping cart record you specified. The generated stub will also contain some code to convert an XML string representing the shopping cart into the record you specified. In addition, the generated stub will format a PunchOutOrderMessage record into a string, based on the resultFormat you specified
5. Using Designer, implement the handler service stub as follows:
a. Map the shopping cart record's data to the PunchOutOrderMessage record.
b. In the shopping cart system, extract the PunchOutOrderMessage from the HTTP response body returned by the mapping service.