Ariba Supplier OnRamp 7.1 | webMethods Ariba Supplier OnRamp Documentation | webMethods Ariba Supplier OnRamp Installation and User’s Documentation | Using the Test Module | Testing OrderRequests
 
Testing OrderRequests
You can test the OrderRequestHandler by creating and sending simple OrderRequest messages, or MIME messages containing OrderRequests and attachments.
*To create and send a test OrderRequest message
1. Start Integration Server Administrator.
2. In the Ariba OnRamp menu, select Test. The Test page appears.
3. Select the test type OrderRequest.
The Test cXML Request Processing screen appears.
4. Set the cXML From, To, and Sender credentials by clicking the Set Credentials button and completing the following fields to specify the credentials of the sender and receiver of the document. (To send empty values, click the check boxes next to the fields.)
In this field…
Specify…
Identity
An ID string representing the entity.
Domain
Select one of the following values:
*DUNS. If the ID is a DUNS number.
*NetworkId. If the ID is an Ariba SN ID.
Shared Secret
For the Sender credential, this must be the supplier's SharedSecret, which is configured on both Ariba SN and on the cXML of Ariba Supplier OnRamp.
Digital Signature
Optional.
Signature Type
Optional. The Digital Signature Type.
Signature Encoding
Optional. The Digital Signature Encoding.
User Agent
For Sender Credential Only. The sending system's User Agent Identity.
Note:
If you have enabled SharedSecret validation (as described in , make sure that you enter the supplier's SharedSecret in the SharedSecret field in Request Header's Sender credential.
5. Click the Add Line Item button to add Order Line Items and perform the following steps:
a. Wait for the browser page to fully load. The web page is a form containing fields representing the cXML Item Out Record, as defined in the cXML Users Guide. All fields in italics are optional.
b. Be sure that you enter the following fields:
Field Name
Value
@quantity
The number of items to buyer.
ItemID/SupplierPartID
The ID used by this supplier to represent the product.
ItemDetail/UnitPrice/Money/*body
The price of this item.
ItemDetail/Tax/.Money/*body
The tax of this item.
c. Click the Submit button. You should see the line item in the Line Items table.
6. Click the Submit button. You should see the line item in the Line Items table.
a. Enter the following values for each of the fields:
Field Name
Value
Filename
The name of a file on the server to include as an attachment.
Type
The content type designation of the attachment in the form of type/subtype. For example: text/html, text/plain, and so on.
Description (Optional)
A description of the attachment contents.
Disposition (Optional)
The MIME disposition of this attachment. See your MIME specification.
b. Click the Submit button. You should see the attachment entry in the Attachments table.
7. In the OrderRequestHeader table perform the following steps:
a. Set the total amount for the tax and for the order or click the Compute Tax and Total button to compute the tax and total, based on the line items selected.
b. Select the OrderRequest operation type (new, update, or delete).
c. Enter a unique OrderID to identify this order.
d. Enter the date for this order.
e. Click the Set Header button.
8. Click the Create OrderRequest Message button.
9. If you included attachments in your message, a MIME message will be shown in a text box in the next screen. The MIME message will contain the OrderRequest and its attachments.
Otherwise, the OrderRequest content will be shown in the text box.
Note:
Be careful when modifying cXML request documents. Be sure you adhere to XML syntax (ensure that all opening tags have closing tags, special characters are escaped correctly, and so on).
In addition, be extremely careful if you edit a MIME message in the text box. MIME messages are particularly sensitive to whitespace characters. Be sure not to modify the MIME headers. Modifying a MIME document in the text box is not recommended.
10. Click the Send cXML Request button. The response content is displayed.