Vous êtes sur la page 1sur 1

End-to-end Message Flow This is how the message flows through the hybrid application: Contoso sends an X12

sales order message to the endpoint where the EDI agreement is deployed on the cloud. After the message is successfully processed through the EDI agreement, it is sen t to the Service Bus Queue. SB-Messaging receive adapter consumes the message from the Service Bus Queue and instantiates the orchestration deployed in BizTalk Server to send the message t o different destinations based on the order quantity. If the quantity ordered is greater than 100, the orchestration inserts the messa ge to a SalesOrder table. If the quantity ordered is less than or equal to 100, the message is written to a shared file location.

ccording to the business scenario, the X12 sales order message sent from Contoso must be inserted into Northwind s SalesOrder table if the quantity ordered is gre ater than 100. To insert a message into a SalesOrder table, you must generate th e schema for the Insert operation on the table. In this topic, you will create a BizTalk Server solution, and then use the Consume Adapter Service Add-in to gen erate the schema for performing an Insert operation on the SalesOrder table. To generate the schema for Insert operation on SalesOrder table Create a BizTalk Server Visual Studio project. From the Visual Studio File menu, click New, and then click Project. In the New Project dialog box, from the list of installed templates, click BizTalk Projects, and then select Empty BizTalk S erver Project. For the project name enter OrderProcessingDemo and then click OK. Right-click the project name in Solution Explorer, point to Add, and then click Add Generated Items. In the Add Generated Items dialog box, select Consume Adapter Service, and then click Add. The Consume Adapter Service Add-in opens. From the Select a binding drop-down list, select sqlBinding, and then click Conf igure. In the Configure Adapter dialog box, click the Security tab, and from the Client credential type drop-down list, do one of the following: In the Configure Adapter dialog box, click OK. In the Consume Adapter Service di alog box, click Connect. From the Select a category box, expand Tables, and then click the SalesOrder tab le. From the Available categories and operations box, select Insert, click Add, and then click OK. New items are added to the Solution Explorer. The schema file (Ta bleOperation.dbo.SalesOrder.xsd) is the generated schema for performing an Inser t operation on the SalesOrder table.

Vous aimerez peut-être aussi