Share via


Step 2: Create SalesOrder Schema

 

Important

Microsoft Azure BizTalk Services (MABS) is being retired, and replaced with Azure Logic Apps. If you currently use MABS, then Move from BizTalk Services to Logic Appsprovides some guidance on moving your integration solutions to Logic Apps.

If you're brand new to Logic Apps, then we suggest getting started here:

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.

To create the SalesOrder schema

  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="https://ECommerceSalesOrder.Inbound" xmlns:b="https://schemas.microsoft.com/BizTalk/2003" 
    targetNamespace="https://ECommerceSalesOrder.Inbound" xmlns:xs="https://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

Create and Deploy the BizTalk Services Project