Note: Header is in Portuguese “Cabeçalho”, therefore the text from the image is in Portuguese
Sandro;Pereira;1978-04-04;Crestuma;4415 Crestuma Lígia;Tavares;1982-01-21;Seixo-Alvo;451 Seixo-Alvo José;Silva;1970-09-19;Crestuma;4415 Crestuma Rui;Barbosa;1975-09-19;Lever;4415 Lever
Assign a name, for example "TXTtoXML.snk"
To learn more about these properties go to http://msdn.microsoft.com/en-us/library/aa577824.aspx
In the "Receive Locations" tab, select "New" and set the name to your receive location: "ReceiveTXT_to_XML"; in the property "Type" select the option FILE; and in the property "Receive pipeline" select from the drop down box the pipeline we created earlier: "ReceivePipelineCustomPessoas";
On the same tab select the "Configure" button. In the "FILE Transport Properties" window, set "Receive Folder" property, with the folder you created earlier "<solution>\PORTS\IN". On property "File Mask" put the following value: "*. txt", setting that will be processed only files with the extension. "txt". Finally select the "Ok" button.
To finish the process of creating the receive port press "Ok".
On the same tab select the "Configure" button. In the "FILE Transport Properties" window, set the “Destination Folder” property, with the folder you created earlier "<solution>\PORTS\OUT”. On property "File Mask" put the following value: “%MessageID%.xml”, this is special tag (BizTalk Macro) that will set the name of each file written on the file system with the unique identifier of the message. Finally select the "Ok" button to return to previous window.
In order for the Send Port subscribes to all files, we need to set a filter on the tab "Filters" with the following expression: "BTS.ReceivePortName == ReceiveTXT”.
Note: This setting will force each message in the MessageBox which has originates from the Receive Port: ReceiveTXT, be routed and processed by the Send Port we are finished creating.
To finish the process of creating the send port press "Ok".
Sandro Pereira DevScope | MVP & MCTS BizTalk Server 2010 http://sandroaspbiztalkblog.wordpress.com/ | @sandro_asp
Suggested topics related:
This article is also available in the following languages
There is a typo in fig. 5: "Party resolution". Is it from Visio? It might be easier to fix in that :)
Thanks for the warning Zoltán.
I already fixed the image.