Use of Biztalk in the Central Order Generation System:
In the central order generation system, the order gets generated and must be served to the subscribing systems. These subscribing systems could be of any platform with any ERP, e.g. SAP, etc. There has to be a platform independent way to transfer the messages to the systems and receive acknowledgement as well. Here comes the role of BizTalk.
In our case we have out the entire order generation logic in the stored procedure which create an order from the database and return the Order in a well formed XML format. Many people still wonder why XML?, the answer to it is that XML is the only data type rather format which has been supported by almost every system/platform existing today. Once we get an XML Order we need to expose a web service which could when called could serve this order to the subscribing system.
Think of the days when were doing this coding our way through, how much do we think we would have spent on creating an application which would take the order from the SQL Stored Procedure, apply some business logic in it, get the transactions going, create some statistical report based on it and eventually exposing it as a web service. BizTalk makes this just a game of configuring various components provided in it.
Create an Orchestration with a SQL Adapter configured to receive data from the SQL Stored Procedure, use some transformation shapes to transform the message, use pipelines and maps to decide the flow, and in the end create a SOAP adapter for receiving the request and serving the Order. BizTalk has inbuilt support for transaction which could be long running and atomic and several other features.
Management can use BAM provided by Biztalk and see the orders moving through the system. Developers have got the BizTalk Administration console to configure Orchestrations and ports and location to receive. BizTalk reduces the development time considerably and lets the solution developers focus on "What to do?" rather than thinking "How to do?".
In the next post we would discuss about Use of XML in Stored Procedures and consuming the result of stored procedures in BizTalk Orchestration and eventually exposing that as a web service.