BizTalk Server 2004 Lab Manual
BizTalk Server 2004 Lab Manual
Table of Contents
Scenario At times, you may receive certain types of messages that do not require any
detailed processing. Message routing provides a solution for forwarding
messages to a specific send port, based solely on the contents of the message.
Northwind Traders wants to immediately route customer orders to its supplier,
Fabrikam, when the order amount is equal to or less than $500. Orders greater
than $500 require additional approval, and should be routed internally for
additional processing.
Receive
Receive Port
Port
1 (rprtReceive)
(rprtReceive)
Receive
Receive Location
Location
(rlocReceiveFILE)
(rlocReceiveFILE)
MessageBox
Map
Map
2
NWCustomerOrder To Subscriptions
FKSupplierPO.btm
3 4
Order > 500 Order <= 500
Send Port
Port Send Port
Port
Estimated time to (sprtPONeedsApproval)
(sprtPONeedsApproval) (sprtPOSendOrderFILE)
(sprtPOSendOrderFILE)
complete this lab: 30 Filter: Filter:
minutes >500 Bind/Enlist <=500
In this lab you will learn how to create both receive locations and send ports.
You will also learn how to use message routing to create a subscription for a
send port. In this example, you create a filter that checks the quantity, and then
either forwards the message to one send port if the value is equal to or less than
500, or to another send port if the value is greater than 500.
4 Microsoft BizTalk Server 2004: Enabling Message Routing
Exercise 1
Create a Receive Port and a Receive Location
Scenario
In this exercise, you will open and modify an existing solution and create a receive port and a
receive location for incoming messages.
Note: In Inbound Maps under Map to apply, you will have to click the
scroll down arrow to view the appropriate map value.
g. Click OK.
6. Create a receive location. a. Right-click Receive Locations under rprtReceive, and then select
Add Receive Location.
Microsoft BizTalk Server 2004: Enabling Message Routing 5
location provides the b. Use the following information for the receive location:
physical address and
transport information for Parameter Value
Name rlocReceiveFILE
BizTalk Server to process
Transport Type FILE
inbound messages. Address URI…Receive Folder C:\Labs\Work\FileDrop\Messaging\Receive
Address URI…File Mask *.xml
Receive Handler BizTalkServerApplication
ReceivePipeline Microsoft.BizTalk.DefaultPipelines.XML
Receive…
c. Click OK.
6 Microsoft BizTalk Server 2004: Enabling Message Routing
Exercise 2
Create Send Ports and Define Message Filters
Scenario
In this exercise, you will create two send ports and define a filter for routing messages to a specific
send port, based on the message contents. Outgoing customer orders with a total amount equal to or
less than $500 will be sent to a send port that forwards the message immediately to the supplier.
Customer orders with amounts greater than $500 require internal approval, and will be sent to a
different send port for further processing..
1. Create the first send port. d. In BizTalk Explorer, right-click Send Ports, and then select Add
Send Port.
This creates a file folder e. In the drop-down menu ensure that Static One-Way Port is selected
location to send the message and click OK.
to if the amount is less than
or equal to 500. f. Define the Port using the following information:
Parameter Value
Name sprtPOSendOrderFILE
Transport Type FILE
Address URI…Destination Folder C:\Labs\Work\FileDrop\Messaging\SendOr
der
Address URI…File Name PurchaseOrder%MessageID%.xml
Send | Send Pipeline Microsoft.BizTalk.DefaultPipelines.XML
Transmit
Filters & Maps | Filters | Property NWMessaging.TotalOrderAmount
Filters | Operation <=
Filters | Value 500
g. Click OK.
2. Create the second send port. a. Right-click Send Ports, and then select Add Send Port.
b. Create a Static One-Way Port by using the following information:
This creates a file folder
location to send the message Parameter Value
to if the amount is greater Name sprtPONeedsApprovalFILE
Transport Type FILE
than 500. Address URI…Destination Folder C:\Labs\Work\FileDrop\Messaging\NeedsAppro
val
Address URI…File Name PurchaseOrder%MessageID%.xml
Send Pipeline …XML Transmit
Filters & Maps | Filters | Property NWMessaging.TotalOrderAmount
Filters | Operation >
Filters | Value 500
c. Click OK.
Microsoft BizTalk Server 2004: Enabling Message Routing 7
Exercise 3
Start the Send Ports and Test the Configuration
Scenario
In this exercise, you will start the send ports, enable the receive locations, and then test the scenario.
3. Start the newly created send a. Right-click sprtPOSendOrderFILE, and then select Start.
ports. b. Right-click sprtPONeedApprovalFILE, and then select Start.
Because the amount is greater than 500, the order is dropped in the
...\NeedsApproval folder.
k. Close Windows Explorer.