[BizTalk Notes]-1. Hello world!

Source: Internet
Author: User
Tags msmq biztalk
I started to get started with BizTalk. This thing does not seem to be as studious as the specific technologies such as LINQ and Silverlight. After reading the documents for a few days, I also ran some small examples, but I still don't feel like it, we only know that BizTalk is a messaging engine. With the help of message sending/receiving, we can connect various business systems together. People on earth have a series of BizTalk articles. Today, according to his first example Hello world, we ran it in a non-encoding manner. Although this is a demo that is not associated with the business process, however, it is quite interesting to think about it. Some experiences are as follows: 1, If the file is not automatically removed from the Directory D: \ projects \ Hello world \ in, check whether the "sending port" and "receiving port" are in the "started" status. 2, You can set multiple sending ports, not only in file mode, but also in MSMQ mode. Note: If MSMQ is used for sending, it is recommended to write a simple one. Code Test whether the queue can receive the message. The following is a simple sample code:
Using system; using system. messaging; namespace msmq_send {class program {static void main (string [] ARGs) {messagequeue queue = new messagequeue ("jmyang \ private $ \ Demo "); message MSG = new message (); MSG. body = "Hello world! "; Msg. formatter = new xmlmessageformatter (New Type [] {typeof (string)}); queue. Send (MSG); console. writeline (" sent successfully! "); Console. Readline ();}}}
3, If the file is still not copied to the output, output2, and MSMQ queues, try the BizTalk management interface --> Application Program --> Right-click "Hello World", stop and start 4, After MSMQ is successfully sent, you can view the received message in MSMQ management MMC. 5, The type of the received file is not limited to XML. You can modify *. XML to * by configuring the receiving location to allow receiving of any file type (But remember one thing: To make any configuration changes take effect, you must stop Hello world and restart it. ) 6, If you do not want to rename the received file, you can also set to retain the original file name, as shown in: (Change % messageid %. XML to % sourcefilename %)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.