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 %)