Published on

Biztalk Server

1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • EDI – Electronic Data Interchange HTTP – Hyper Text Transfer Protocol HTTPS – HTTP Secure MSMQ – Microsoft Message Queue SMTP – Simple Mail Transfer Protocol FTP – File Transfer Protocol
  • Copy this and save to a text file: PO1999-10-20 US Alice Smith 123 Maple Street Mill Valley CA 90952 US Robert Smith 8 Oak Avenue Old Town PA 95819 ITEMS,ITEM872-AA|Lawnmower|1|148.95|Confirm this is electric,ITEM926-AA|Baby Monitor|1|39.98|Confirm this is electric Once you give name for the schema, a wizard appears. Click Next
  • Under Instance file, give the path where the text file that you saved in the previous step has been placed. Record name be PO (Purchase Order in this case – it is the root tag) Leave the target namespace and code page as it is and click Next
  • Content of the file is shown. Click Next.
  • Select Delimiter Symbol for the separator of each record. Click Next
  • Select Carriage Return / Line Feed (CR/LF) – New line as the delimiter. That is every record is separated by a new line. Check “Record has tag identifier” and give tag name as PO – the root element Click Next
  • Give the settings as shown in the above figure. For Field_1, give name as date and it’s a field element. Give the data type as date For the next line, give element type as “Repeating Record” as it is going to be repeated many times. The third line simply ignore. WE are concerned with schema and not data Fourth item is a record that will be appear once. Click Next
  • The schema got generated and we still need to configure the repeating record customer and a record items. Select Customer and click Next
  • Select the customer data and click Next. In the record format screen select “By Relative Position” to specify elements by specifying the position manually.
  • Click using the left mouse button by placing cursor over the scale to mark the starting position. To unmark it, again click on it. Repeat the same as we did in the previous step for elements. Here all are field elements Refer to the picture.
  • Schema has been appended with new elements for customer tag. Select items and click next to configure elements of items. Refer to the slides.
  • Order: Document Data Record Format Delimited Record Child Elements
  • Now we need to configure child elements for items. Select items and click Next. Select Document Data Select Record Format Select Delimited Record and click next
  • Give the element description Click Finish New schema is generated.
  • In the grid one could see the mappings from source to destination
  • Biztalk

    1. 1. Microsoft BizTalk Server Basics
    2. 2. Introduction <ul><li>BizTalk belongs to the Microsoft Server family </li></ul><ul><li>Connects disparate systems together </li></ul><ul><li>Communication among systems are established through messages </li></ul><ul><li>All messages inside Biztalk are XML data </li></ul><ul><li>Since XML can be interpreted in any system, BizTalk helps in connectivity </li></ul>
    3. 3. Need for communication <ul><li>An organization may follow a software with different configuration for a process and another software with entirely different configuration to take care of another process </li></ul><ul><li>Both processes may depend on each other’s data </li></ul><ul><li>For example a company’s attendance system need to be connected with payroll system </li></ul><ul><li>Or a purchase order need to be communicated to invoice generating system </li></ul>
    4. 4. History of BizTalk Server <ul><li>2000 – Microsoft Released the first Version of BizTalk </li></ul><ul><ul><li>Editor – Writing XML Data </li></ul></ul><ul><ul><li>Mapper – Translate data from source format to destination format </li></ul></ul><ul><ul><li>Management Desk – Tracking data </li></ul></ul><ul><ul><li>Protocols supported – EDI, HTTP, HTTPS, MSMQ, SMTP, FTP </li></ul></ul>
    5. 5. History (contd...) <ul><li>2002 – Next version. Not much change </li></ul><ul><li>2004 – Added Human Workflow Services (HWS) and Business Activity Services </li></ul><ul><ul><li>Supported by .Net framework 1.0 </li></ul></ul><ul><ul><li>Integrated VS 2003 support for editor and mapper </li></ul></ul><ul><li>2006 – Business Activity Monitor (BAM) was added. Also Health and Activity Tracking component for tracking the server status was added. </li></ul><ul><ul><li>.Net framework 2.0 support </li></ul></ul><ul><ul><li>Integrated VS 2005 support </li></ul></ul>
    6. 6. History (Contd...) <ul><li>2007 – Also called as 2006 R2 (Release 2). </li></ul><ul><ul><li>Rich UI administration was incorporated. </li></ul></ul><ul><ul><li>.Net Framework 3.0 (WCF, WF) support </li></ul></ul><ul><li>2009 – Recent version. </li></ul><ul><ul><li>RFID support </li></ul></ul><ul><ul><li>Separate RFID Server) </li></ul></ul>
    7. 7. Overview of Basic Configuration <ul><li>Basic configuration does not allow remote SQL server. To use remote SQL server use custom configuration </li></ul><ul><li>The following need to be configured: </li></ul><ul><ul><li>Enterprise SSO (Single Sign On) </li></ul></ul><ul><ul><ul><li>This is used for managing credentials of users who can log on the server. </li></ul></ul></ul><ul><ul><ul><li>Enterprise SSO Secret BackUp </li></ul></ul></ul><ul><ul><ul><ul><li>This keeps the password that can be used for taking a back up of credentials in case of any system crash. </li></ul></ul></ul></ul><ul><ul><ul><li>After configuring this component a database SSODB is created in MS SQL server </li></ul></ul></ul>
    8. 8. Basic Configuration Contd.. <ul><li>Group </li></ul><ul><ul><li>Collection of settings that govern the way BizTalk server behaves and the data store it uses </li></ul></ul><ul><ul><li>After this step the following databases – BizTalkMgmtDb, BizTalkMsgBoxDb, BizTalkDTADb are created </li></ul></ul><ul><li>BizTalk Runtime </li></ul><ul><ul><li>This is to manage the routing capabilities </li></ul></ul>
    9. 9. Basic Configuration Contd.. <ul><li>MSMQ – Microsoft Message Queue. This is to manage messages that are transferred to and from the server </li></ul><ul><li>Business Rules Engine – This configuration takes care of business rules necessary for the server. </li></ul><ul><ul><li>The configurations are stored in BizTalkRuleEngineDb. </li></ul></ul><ul><ul><li>Service used is Rule Engine update service. </li></ul></ul><ul><ul><li>Initiates action based on evaluation </li></ul></ul>
    10. 10. Basic Configuration Contd.. <ul><li>HWS – Human Workflow Services </li></ul><ul><ul><li>Two components </li></ul></ul><ul><ul><ul><li>HWS Runtime </li></ul></ul></ul><ul><ul><ul><li>HWS Webservice – encapsulates the functionality of client applications like sharepoint to provide workflow capabilities to information workers </li></ul></ul></ul><ul><ul><li>DB – HwsDb </li></ul></ul><ul><ul><li>Service – HWS Runtime Account and HWS Webservice Account </li></ul></ul><ul><ul><li>This dynamically composes workflow </li></ul></ul>
    11. 11. Basic Configuration Contd.. <ul><li>BAM – Business Activity Monitor </li></ul><ul><ul><li>BAM Tools – Provides business users a set of monitoring tools </li></ul></ul><ul><ul><ul><li>BAM Alerts – Notification services are provided based on subscription </li></ul></ul></ul><ul><ul><ul><ul><li>Uses DB like BAMAlertsNSMainApplication </li></ul></ul></ul></ul><ul><ul><ul><li>BAMPrimaryImport, BAMStarSchema, BAMArchieve, BAMAnalysis are the other databases used </li></ul></ul></ul><ul><ul><li>BAM Portal – Service used is BizTalk EDI/AS2 Runtime. Messages are sent and received using EDI/AS2 Protocol </li></ul></ul>
    12. 12. BizTalk Editor - Overview <ul><li>Editor is used for generating Schema. </li></ul><ul><li>BizTalk generates XDS (XML Schema Definition) as the application communicates through XML </li></ul><ul><li>Editor comes as a part of Visual Studio IDE. </li></ul><ul><li>In VS IDE, create a biztalk project and add a schema file to create a schema. </li></ul>
    13. 13. Creating XSD <ul><li>Open Visual Studio 2005 (if you are using BizTalk 2006 and higher version) </li></ul><ul><li>Click on File -> New Project </li></ul><ul><li>Select BizTalk Projects and click on Empty BizTalk Application </li></ul><ul><li>Give a name and click OK </li></ul><ul><li>In the solution explorer, right click on the project and select Add -> New Item </li></ul><ul><li>Select Schema Files on the left pane and select Flat File Schema Wizard. </li></ul><ul><li>Refer to the screen shots for further processes. </li></ul>
    14. 14. Editor Overview
    15. 15. Flat File Schema Wizard <ul><li>Refer to notes page for explanation </li></ul>
    16. 28. Generating XML from the XSD <ul><li>Right click on the Project and select Validate Schema </li></ul><ul><li>Once the validation is over, click on Generate Instance Message. </li></ul><ul><li>An empty XML file with sample data entry in accordance to the schema will be generated. </li></ul><ul><li>This XML file can be modified and used with any application that supports XML. </li></ul>
    17. 29. BizTalk Mapper - Overview <ul><li>Mapper is a tool that is used for mapping data </li></ul><ul><li>The source data is mapped with the destination data </li></ul><ul><li>Since BizTalk involves with connecting disparate systems, the source data need to be transformed to another format acceptable by the destination. </li></ul><ul><li>Hence Mapper plays a vital role. </li></ul><ul><li>Mapper too comes integrated with VS IDE. </li></ul>
    18. 30. Creating Maps <ul><li>Open BizTalk Project containing the XSDs </li></ul><ul><li>Right click on the project and select Add -> New Item. </li></ul><ul><li>Select Maps in the left pane and Empty Map in the right pane </li></ul><ul><li>Give a name for the map and click OK </li></ul><ul><li>It will open a GUI where we can select the source and the destination schema and map accordingly. </li></ul><ul><li>Refer to the screen shots for more details. </li></ul>
    19. 32. Functoids <ul><li>Functoids are functions that can be used with mapper. </li></ul><ul><li>The source data can be applied with functoids and transformed to destination friendly data. </li></ul><ul><li>Many functions for manipulating strings (concat, uppercase conversion etc), numbers (add,multiply etc), scientific functions (log, exponent etc), database are available. </li></ul><ul><li>Refer to the tool bar, the violet color box in the grid in the previous picture. </li></ul>
    20. 33. BizTalk Administration Console <ul><li>Administration console is used for performing administrative tasks like </li></ul><ul><ul><li>Starting and stopping an application </li></ul></ul><ul><ul><li>Taking reports concerned with messages transferred, application usage etc </li></ul></ul><ul><ul><li>Configuring send and receiving ports </li></ul></ul><ul><ul><li>Adding resources to the application </li></ul></ul><ul><ul><li>Managing Orchestration, Maps, Schemas, Pipelines for the application </li></ul></ul>
    21. 34. BizTalk Application <ul><li>Feature of biz talk server that helps in deployment, management, trouble shooting of biz talk server solutions </li></ul><ul><li>Logical grouping of artifacts </li></ul><ul><ul><li>Biztalk and .Net assemblies </li></ul></ul><ul><ul><li>Send ports, groups </li></ul></ul><ul><ul><li>Receive ports, locations </li></ul></ul><ul><ul><li>Policies </li></ul></ul><ul><ul><li>Certificates, scripts, COM Components </li></ul></ul><ul><ul><li>BizTalk specific resources (schema, map, orchestration, pipeline) </li></ul></ul>
    22. 35. Orchestrations <ul><li>To add orchestration for a biz talk project, right click on the project and select Add -> New Item </li></ul><ul><li>Select Orchestration from the left pane and empty orchestration from the right pane </li></ul><ul><li>Give a name for the orchestration and click OK </li></ul><ul><li>A new orchestration designer with a file extension odx is opened. </li></ul><ul><li>Use the tool bar to add components that we want. </li></ul>
    23. 36. Pipelines <ul><li>To add pipelines for a biz talk project, right click on the project and select Add -> New Item </li></ul><ul><li>Select Pipelines from the left pane and either send pipeline or receive pipeline from the right pane </li></ul><ul><li>Give a name for the pipeline selected and click OK </li></ul><ul><li>A new pipeline designer is opened. </li></ul><ul><li>Use the tool bar to add components that we want. </li></ul>
    24. 37. Receive Pipeline <ul><li>This is for transforming data at the receiving end </li></ul><ul><li>It has </li></ul><ul><ul><li>Decoder – to decode the incoming data (MIME decoder) </li></ul></ul><ul><ul><li>Disassembler – to convert data (flat file or any) to XML </li></ul></ul><ul><ul><li>Validator – to validate the generated XML against a schema (XSD) </li></ul></ul><ul><ul><li>Party Resolver – To determine identity of party from who the message is received. </li></ul></ul>
    25. 38. Send Pipeline <ul><li>This is present at the sending end for transforming the outgoing message </li></ul><ul><li>It has </li></ul><ul><ul><li>Pre assembler – optional component containing custom tools </li></ul></ul><ul><ul><li>Assembler – Converting XML data to destination data </li></ul></ul><ul><ul><li>Encoder – To encode the outgoing data </li></ul></ul>
    26. 39. Human Workflow Services <ul><li>This is for dynamically configuring workflow </li></ul><ul><li>We can define constraints and lot of other condtions and design the workflow. </li></ul><ul><li>HwsDb stores details about workflow. </li></ul><ul><li>Refer to screen shots in the following slides for more details about Human Workflow Services </li></ul>
    27. 40. Business Rule Composer <ul><li>This is used for composing business rules </li></ul><ul><li>We can set an action to be performed upon an occurrence of an event </li></ul><ul><li>Actions are evaluated based on the facts (rules) </li></ul><ul><li>We can compose vocabulary (definitions) or policy (logical grouping of rules) using business rule composer. </li></ul>