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 your first logic app, or quickly get started using a pre-built template
-
View all the available connectors you can use in your logic apps
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
Right-click the project name (EAIEDITutorial), select Add, and then select New Item.
In Add New Item, select Schema, name it ECommerceSalesOrder, and then select Add.
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>
Save the changes.