SALES: 1-800-867-1380

Step 2: Create SalesOrder Schema

Updated: February 10, 2015

Create a SalesOrder schema. Contoso sends sales order messages to Northwind using this schema. You can use the Schema Editor (Tools for Creating Message Schemas) to build this schema or download the schema at MSDN Code Gallery.

  1. Right-click the project name (EAIEDITutorial), select Add, and then select New Item.

  2. In Add New Item, select Schema, name it ECommerceSalesOrder, and then select Add.

  3. Edit and build the schema to resemble the following:

    <?xml version="1.0" encoding="utf-16"?>
    <xs:schema xmlns="http://ECommerceSalesOrder.Inbound" xmlns:b="" 
    targetNamespace="http://ECommerceSalesOrder.Inbound" xmlns:xs="">
      <xs:element name="SalesOrder">
            <xs:element name="CompanyCode" type="xs:string" />
            <xs:element name="PartID" type="xs:int" />
            <xs:element name="Quantity" type="xs:int" />
            <xs:element name="AskPrice" type="xs:decimal" />
            <xs:element name="RequestShipmentDate" type="xs:date" />
            <xs:element name="Address">
                  <xs:element name="Line1" type="xs:string" />
                  <xs:element name="Line2" type="xs:string" />
                  <xs:element name="City" type="xs:string" />
                  <xs:element name="State" type="xs:string" />
                  <xs:element name="Country" type="xs:string" />
                  <xs:element name="Zipcode" type="xs:int" />
            <xs:element name="Contact">
                  <xs:element name="Firstname" type="xs:string" />
                  <xs:element name="Lastname" type="xs:string" />
            <xs:element name="Comments" type="xs:string" />
            <xs:element name="DateNow" type="xs:date" />
  4. Save the changes.

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft