When learning the development language, I like to output "Hello World" as the first program. Today, we also create a simple "Hello World" program in BizTalk.
Many articles in BizTalk teach you how to use Visual Studio to develop the first BizTalk application. Today, let's develop a BizTalk-based "Hello World" application. That is, you can directly create an application on the BizTalk console.
Biztalk Server Console
After installing and configuring BizTalk, you can manage BizTalk Server and applications on the BizTalk console. Here are several concepts:
- Biztalk group: the logical concept of BizTalk Server. You can add multiple BizTalk servers to one group for management.
- Applications: After the BizTalk application is developed, it is under this node.
- Platform setting: configurations of the BizTalk runtime environment, such as BizTalk instances (processes during the BizTalk runtime) and BizTalk adapters.
View console concepts
After reading these concepts, you may still be confused. But it doesn't matter that BizTalk is not so easy to understand, especially at the beginning of learning. Because its development philosophy is a little different from the programming language. It is a message-oriented development concept. I talked to some new people who are learning BizTalk before. I often hear "I have been studying BizTalk for a week, but I still don't know how to use it .". I mentioned this later when talking to a BizTalk MVP. He also said, "I didn't know why I used it for three months ". So don't rush for success.
Start Development
1. First open the BizTalk Server Management Console, right-click applications node and choose new> application. In the displayed dialog box, enter the application name: Hello word.
2. OK. The program Hello world has been created, but it does everything. We will see many nodes under the hello World node. Every application and program has so many nodes. These nodes are closely related to the BizTalk architecture.
3. BizTalk is like a box for processing messages. Because incoming messages and outgoing messages are required. In this case, we first create a port for receiving messages.
Right-click the receive port node and choose new> single-direction port. On the General tab, enter the port name receivefiles.
4. The port is the logical concept of BizTalk, and the real receipt is configured under the "receive location" node. Right-click the Receive Locations node-> New-> single-direction Receiving address. In the "select receiving port" dialog box, select the newly created port "receivefiles ".
5. Fill in the name of the receiving location on the receiving location configuration page. Select File in type, and select passthrureceive in the receiving pipeline.
6. Click the Config button of the type to bring up the configuration dialog box of file to configure the receiving location and the corresponding file name.
7. After the receiving port is created, create the sending port. The sending port directly specifies the physical location and method of sending. Use send group to manage multiple sending ports.
Right-click the send ports node and choose create> static one-way send port.
8. In the sending port configuration menu, configure the sending port name, type, and corresponding sending location.
9. OK. Now all the ports have been created. Now everything is ready to do. Do you have the following question: how can I send the received message from the sending port? You may think they can be implemented directly under the same application. However, under the same application, many receiving ports can be created to send messages. How does BizTalk determine where to receive and send messages ?.
Let's see how to associate the receiving port with the sending port. Open the send port configuration dialog box again, and we will notice that the menu item on the left is "filter ). We can use this to associate the sending port with the receiving port. In the conditional expression, set: BTS. inclueportname = receivefiles
10. Start the BizTalk application verification program
Right-click the Hello world application and select start. Open the receiving folder you Just configured. Copy the test XML file quicklearn. cn. msg. XML to the receiving folder in.
View output in the out folder
Our first BizTalk program has been successfully run. How do you feel. Is it amazing. Although many theoretical things are not mentioned. HoweverFor beginners, interest is often more important.. In addition, this program can also be used to carry files, or do not need to go through the business process. Its terminology is "straight-through process ". I learned this thing three months after learning BizTalk. Remember this sample and gradually understand this sample and BizTalk architecture ideas in the future BizTalk learning process.
Biztalk series (1) "Hello World"