1.16k likes | 1.33k Views
فصل : BizTalk. دوره SOA استانداری قم - جواد تقی زاده. BizTalk چیست؟.
E N D
فصل : BizTalk دوره SOA استانداری قم -جواد تقی زاده
BizTalk چیست؟ • Microsoft BizTalk Server (or simply "BizTalk") enables companies to automate business processes, through the use of adapters which are tailored to communicate with different software systems used in an enterprise. Created by Microsoft, it provides enterprise application integration, business process automation, business-to-business communication, message broker and business activity monitoring. • Human-centric processes cannot be implemented directly with BizTalk Server and need additional applications like Microsoft SharePoint server.
Development for BizTalk Server is done through Microsoft Visual Studio. • A developer can create transformation maps transforming one message type to another. • Messagesinside BizTalk are implemented through the XML documents and defined with the XML schemas in XSD standard. • Maps are implemented with the XSLT standard. • Orchestrationsare implemented with the WS-BPEL compatible process language xLANG. • Schemas, maps, pipelines and orchestrations are created visually using graphical tools within Microsoft Visual Studio.
سایت های مرجع • http://msdn.microsoft.com/en-us/biztalk/aa937640.aspx
Biztalkرقبای • IBM WebSphere ESB • webMethods • Oracle SOA Suite
SOA Capabilities Framework User Interaction Reporting Portal Collaboration BI BAM BPM Identity & Access Process Workflow Federated Security Service Orientation Management & Governance SODA Services Enterprise Service Bus Service Registry Standards Support Endpoint Metadata Brokered Communication Service Mgmt Adaption Transformation Intelligent Routing Operational Mgmt Adaption Integrated Tools Design & Dev Tools LOB Protocol EIS Process Design & Simulation
Microsoft Platform Overlaid User Interaction Reporting Portal Collaboration BI BAM BPMS Identity & Access Process Workflow Federated Security Service Orientation Management & Governance Service Registry Enterprise Service Bus Standards Support Endpoint Metadata Brokered Communication Service Mgmt Adaption Transformation Intelligent Routing Operational Mgmt Adaption Integrated Tools Design & Dev Tools LOB Protocol EIS Process Design & Simulation MOSS BizTalk Server Workflow Foundation BizTalk Server SSIS WCF SODA Services Microsoft UDDI Server Systinet AmberPoint BizTalk Server WF MOM BizTalk Server WCF Visual Studio
Product and frameworks • Microsoft BizTalk Server 2010 • Microsoft Stream Insight • SQL Server Integration Services • SQL Server Master Data Services • Windows Server AppFabric • Windows Azure Service Bus Relayed Messaging • SharePoint Business Connectivity Services • Windows Azure Service Bus Brokered Messaging • Windows Azure Service Bus EAI & EDI
Microsoft BizTalk Server 2010 “Microsoft BizTalk Server is used to simplify and automate the exchange of information between publishers and subscribers, to orchestrate business processesand to supply insight into processes” Company A BizTalk Server Application Application Application Internet Company B
What does BizTalk do? BizTalk Does This… • Solve integration challenges between systems, events, devices • Automate integration processes • Simplify building and managing these processes • Capture, analyze and present process data
The History of BizTalk Server 2009 2000 2002 2004 2006 2007 BizTalk 2009 BizTalk Server 2000 BizTalk Server 2002 BizTalk Server 2004 BizTalk Server 2006 .NET-based rewrite BizTalk Server 2006, R2
Who uses BizTalk Server? 10000+ 23 10,000+ Global Customers benefit from using BizTalk Server 23 of 27 EU governments use BizTalk Server to provide government services 81% 81% of the Global 100 are running BizTalk Server 6 4 6 of the 8 largest U.S. Pharmaceutical Companies use Microsoft BizTalk Server 4 of the 5 largest U.S. Electronics Parts Manufacturers use Microsoft BizTalk Server 9 of 10 9 of 10 largest U.S. Telecommunications Companies use BizTalk Server 9of10 9 of the 10 largest Aerospace and Defense Companies in the U.S. run BizTalk Server 5 5 of the 8 largest U.S. Chemical Companies run Microsoft BizTalk Server 4 of the 5 largest Railroads in the U.S. run Microsoft BizTalk Server 4 9 of the 10 largest Insurance Companies in the World run Microsoft BizTalk Server
Evolution of BizTalk Server CONTINUOUS INNOVATION EVERY 2-3 YEARS BizTalk Server 2010 BizTalk Server 2009 • Workflow Integration • ESB 2.1 • SharePoint 2010 BCS • Data Mapper • TPM • Secure FTP • Updated Swift and HIPAA • SQL Server 2008 R2 • Windows Server 2008 R2 • HIS 2010 BizTalk Server 2006 R2 BizTalk Server 2006 • ALM Support • B2B Enhancements • RFID Mobile • Adapter Pack 2.0 • ESB 2.0 Toolkit • BAM+ • Hyper-V Support • HIS 2009 • BAHS 2.0 BizTalk Server 2004 • SOA/ESB • EDI/AS2 • RFID • WCF • Adapter Pack • Adapter SDK • HIS 2006 • BAHS • Simple configuration • Adapters in box • Runtime+ • BAM+ BizTalk Server 2002 BizTalk Server 2000 • VS + .NET • Messaging + Orchestration • BRE • Routing • BAM • Scale-out • Deployment Tools • XSD • EAI (partner adapters) • Vertical B2B • Messaging • XML tools • XLang 500 Customers 2,000Customers 10,500Customers 4,000Customers 7,000Customers 8,500Customers 12,000Customers
BizTalk Serverآینده Committed to innovation in Integration ~12 years, 12,000+ customers 8th release Regular updates 18-24 months
BizTalk Server Standard Edition BizTalk Server BizTalk Server or SQL Server SQL Server • Limited to two CPUs on one server • Allows a maximum of five applications
BizTalk Server Enterprise Edition BizTalk Server BizTalk Server … … SQL Server SQL Server • Allows multiple servers for reliability and scalability • Allows an unlimited number of applications
BizTalk Roles BizTalk Architect BizTalk Developer BizTalk Administrator A system administrator will have other concerns such as the health of servers and their activity (HAT - Health and Activity Tracking), he has overall responsibility for the BizTalk Environment, such as: installation, configuration and system maintenance, deploying and managing BizTalk Applications, monitoring (unlocking messages and processes or ensuring proper flow of messages), disaster recovery. Knower of the entire system integration: backup and recovery plans, security, logging, message flow, communication interface… Using his knowledge as well as a programmer, the architect should know the capabilities and limitations of the tools at his disposal (BizTalk engine, BAM, BRE) and design projects making the best choices for each situation. Implements and extends the basic functionalities, taking advantage of the different tools. Here there are many areas completely orthogonal and a programmer may not master them all at the same level: Orchestration, Adapters, Pipelines, Mappings, Functoids, Routing, Rules, Tracking, OLAP, and many more.
SOA Federated Example ESB (BizTalk) ESB (BizTalk) ESB (BizTalk) Service Endpoints Service Endpoints Service Endpoints JMS Web Services (J2EE) WCF ASMX ES .NET Adapters Integration Broker (BizTalk) CRM AS/400 LOB Domain C Domain B Domain A 5. File picked up from ftp protocol. ESB processes and based on message itinerary properties invokes service Service Registry 1. Web Service Request Arrives 2. ESB content-based Routing directs to Service Endpoint in Domain A 6. J2EE Web Service invoked 3. LOB & CRM apps invoked. Message context updated and output message transformed 4. Transformed message ftp’d to Domain C
BizTalk Server 2010 Integration Scenario Filter Tags Policy Read Shipment RFID Tags Business Users Microsoft BizTalk Server 2010 Messaging Inventory Application Manage and Operate Re-stock Orders Orchestration 1 5 RFI EDI 4 SuppliersApplication Design and Implement Assign Supplier Policy Messaging Up-to-date KPIs in BAM IT Pros and Developers 2 Messaging 3 Enterprise Resource Planning (ERP)Application
BizTalk Server 2010 Runtime Architecture XML EDI or Flat File XML EDI or Flat File Receive Port Orchestration Send Port ReceiveAdapter ReceiveLocation SendAdapter ReceivePipeline SendPipeline Mapping Mapping FROM: Contoso (Flat file format) TO: NWTraders (Flat file format) MessageBox TO: Fabrikam (XML format) FROM: Fabrikam (XML format)
Item Header Customer Item Item Header Record Status Field2 Field1 Field3 PO Name Field3 Field2 Field1 ItemID Date UnitPrice Qty Title PO Status Status Field3 Field1 PO Field2 Order PO Date Detail FieldA FieldB Tools for Developers Define Schemas Transform Data BizTalk Editor Visual Studio 2010 BizTalk Mapper Process Messages Design Business Processes Orchestration Designer Pipeline Designer
اجزای BizTalk • BizTalk Schema • BizTalk Map • BizTalk Pipeline • BizTalk Orchestration • BizTalk Adapters • Microsoft Business Rules • Business Activity Monitoring • Message Routing
Supported BizTalk Schema Types Item Description Quantity UnitPrice TotalPrice ItemID Status Node Structure Start Length Description Delimited 0 50 UnitPrice Delimited 50 10 Quantity Delimited 60 10 TotalPrice Delimited 70 10 Delimited 80 10 ItemID Delimited 99 1 Status ISA:00: :00: :01:1515151515 :01:515151 :041201:1217:U:00403:000032123:0:P:*~GS:CT:9988776655:1122334455:20041201:1217:128:X:004030~ST:831:00128001~BGN:00:88200001:20041201~N9:BT:88200001~TRN:1:88200001~AMT:2:10
Flat File Structures Delimited flat files Fields separated by a specified delimiter Have a common end-of-record terminator John, Smith, 123 Main St., “Learning BizTalk Server 2010” Positional flat files Fields are fixed length Have a common end-of-record terminator John Smith 123 Main St. Learning BizTalk Server 2010
Testing a Schema Validate XSD Validate XML Create XML
Using the Flat File Schema Wizard Flat File Schema Wizard Graphical tool for defining flat file schemas Can define schemas for delimited or positional flat files
Creating XSD • Open Visual Studio 2005 (if you are using BizTalk 2006 and higher version) • Click on File -> New Project • Select BizTalk Projects and click on Empty BizTalk Application • Give a name and click OK • In the solution explorer, right click on the project and select Add -> New Item • Select Schema Files on the left pane and select Flat File Schema Wizard. • Refer to the screen shots for further processes.
Generating XML from the XSD • Right click on the Project and select Validate Schema • Once the validation is over, click on Generate Instance Message. • An empty XML file with sample data entry in accordance to the schema will be generated. • This XML file can be modified and used with any application that supports XML.
Flat File Schema Wizard • Refer to notes page for explanation
PO PO Status Date UnitPrice ItemID Qty What Is a BizTalk Map? • A map defines the correspondence between records and fields in two different schemas Data Transformation Data Translation Perform computational and other data operations Copy the data from one message to another Map Destination Schema Source Schema PurchaseOrder PO_Number Date Item_No Quantity Change the format of data between messages Example: translate between a flat file and an XML file Order_Status
Creating a Map by Using the BizTalk Mapper BizTalk Mapper Integrated within Visual Studio Starts when a map is opened or added toa project Source and destination schemas must be part of the project or contained in a referenced assembly SourceSchema Map Grid DestinationSchema
Record Record Record Status ItemID PO Status Status PO Item ItemID PO Creating a Map by Using the BizTalk Mapper Order PO No Date Item No Order PO No Status Flag Item No Order Status Item PO