![]() |
Enterprise Systems »
Microsoft BizTalk Server »
General
Intermediate
How to invoke a BizTalk Orchestration using Office InfoPath 2003By Naveen KaramchettiThis article describes how to connect InfoPath 2003 with BizTalk Server 2004 Orchestrations. |
C#, XML, Windows, .NET, Visual Studio, Dev
|
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||
There are several situations in a workflow where human interaction is required; here is when InfoPath 2003 comes into picture. Essentially, InfoPath 2003 is used to create/edit XML documents based on a schema or a template. This template in InfoPath has a [*.xsn] extension. Using InfoPath a template (*.xsn) is created and several instances of XML documents are created based on that template. InfoPath 2003 is available as a part of Office 2003 Enterprise Edition.
In short, we shall be creating a loan processing application in BizTalk and will access this application using InfoPath 2003.
Create a new BizTalk Server Project in Visual Studio .NET.
Step 1: In the Visual Studio .NET menu, select the File -> New -> Project and type the name "LoanProcessingApplication".
Step 2: Right-click on the project in the Solution Explorer and select the "Add New Item" option. Then, select the item "Schema" and name it "LoanRequest". Add the schema elements and promote the properties as shown in the picture below:
Step 3: Perform 'Step 2' again and name the schema as "LoanResponse". Add the schema elements and promote the properties as shown in the picture below:
This map transforms data from the 'LoanRequest' to the 'LoanResponse' message.
Step 4: Right-click on the project in the Solution Explorer and select the "Add New Item" option. Then, select the item "Map" and name it "LoanRequest-To-LoanResponse-Map". Select the LoanRequest and LoanResponse schemas as the source and destination schemas respectively and map the schemas as shown in the screen shot below:
This orchestration contains the actual loan application processing logic.
Step 5: Right-click on the project in the Solution Explorer and select the "Add New Item" option. Then, select the item "BizTalk Orchestration" and name it "LoanAppOrchestration". Place the various shapes used in the orchestration as shown in the picture below. Note: Download the code provided above and observe the orchestration file:
Step 6: Creating the port.
WSLoanPort" and then click "Next". Specify the properties as shown in the screen shot below:
Step 7: Strong name and deployment
Step 8: Using the BizTalk Web Services Publishing Wizard.
Step 9: Testing the web service: Test the web service which is generated by the wizard using the URL as shown in the image below:
Step 10: Open InfoPath 2003, and select "Design a Form".
Drag and drop the data source fields on to the InfoPath form and form the layout. See the "Preview" of the InfoPath Form screen shot below:
Step 11: Test the solution.
Activate property to "true" for the first Receive shape in the orchestration.
| You must Sign In to use this message board. | ||||||||
|
||||||||
|
||||||||
|
||||||||
|
||||||||
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 17 Mar 2006 Editor: Chris Maunder |
Copyright 2006 by Naveen Karamchetti Everything else Copyright © CodeProject, 1999-2009 Web21 | Advertise on the Code Project |