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="http://schemas.microsoft.com/BizTalk/2003" 
    targetNamespace="http://ECommerceSalesOrder.Inbound" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="SalesOrder">
        <xs:complexType>
          <xs:sequence>
            <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:complexType>
                <xs:sequence>
                  <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:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="Contact">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="Firstname" type="xs:string" />
                  <xs:element name="Lastname" type="xs:string" />
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="Comments" type="xs:string" />
            <xs:element name="DateNow" type="xs:date" />
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:schema>
    
  4. Save the changes.

See Also

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