Create a Business Document for the customer request

The following is an example of the XML input from the web server:

<?xml version="1.0" encoding="ISO-8859-1"?>

<order>

<currency>USD</currency>

<payment>VISA</payment>

<date>2007-03-10</date>

<customer>

<name>James T. Johanson</name>

<id>C-070310-150</id>

<address>

<line>White House</line>

<line>1600 Pennsylvania Avenue NW</line>

<city>Washington</city>

<zip>20500</zip>

<state>DC</state>

<phone>202-456-1111</phone>

<fax>202-456-2461</fax>

</address>

</customer>

<supplier>

<name>Bombay Club Restaurant</name>

<id>S-150110</id>

<address>

<line>815 Connecticut Ave NW</line>

<city>Washington</city>

<zip>20006</zip>

<state>DC</state>

<fax>202-659-5012</fax>

</address>

</supplier>

<line>

<item>calamari peri peri</item>

<qty>2</qty>

<price>7.5</price>

</line>

<line>

<item>masala crab cake</item>

<qty>2</qty>

<price>12</price>

</line>

<line>

<item>tandoori mixed grill</item>

<qty>1</qty>

<price>22</price>

</line>

<line>

<item>lamb biryani</item>

<qty>1</qty>

<price>14.95</price>

</line>

<line>

<item>naan</item>

<qty>5</qty>

<price>2.5</price>

</line>

<line>

<item>Chardonnay Shale Ridge</item>

<qty>1</qty>

<price>30</price>

</line>

</order>

First, you need a Business Document that matches this XML input file. To create the Business Document, proceed as follows:

  1. In Axway Mapping Services, in the left (Project Explorer) frame, call the context menu of the sub directory Business Document in your project.
  2. Resourcenavigator
  1. Select New -> Business Document for the Wizard to create a new Business Document.
  2. Creating a Business Document
  3. Click Next and give the name of the new Business Document
  4. Name field: Enter a name for the new Business Document. This example uses BD_orderFromWeb as the name. Click Finish to create the document and open the Editor view.
  5. In the Editor view, define a complete set of Business Document nodes to match the structure of the incoming XML document, as in the following graphic:
  6. Business Document editor
  7. Check and save the object.

Related Links