开发者

How to receive a specific file thru BizTalk FTP receive port

开发者 https://www.devze.com 2023-04-12 12:53 出处:网络
My orchestration receives a message that contains a file name and I want to pi开发者_JAVA技巧ck that file from my FTP. I can configure FTP receive port to receive all files from some folder in the FTP

My orchestration receives a message that contains a file name and I want to pi开发者_JAVA技巧ck that file from my FTP. I can configure FTP receive port to receive all files from some folder in the FTP, but how do I receive a file with specific name?

The process looks like

How to receive a specific file thru BizTalk FTP receive port


I would rather recommend your solution of writing a custom .NET component which will fetch the file from FTP location (you can call that component from your expression shape).

Dynamically creating Receive Ports/Receive locations and later removing them won't scale and possibly will get you into serious trouble.


I'm not sure if this link helps - specifically the CreateFtpReceiveLocation method - i.e. programatically adding a receive location (pseudo dynamic receive location).

You would also need to remove the location afterwards. I'm guessing that you can also set the FileMask on the Transport Properties of the 'dynamic' Location to the filename in the Custom Props of the TransportTypeData, and would need to remove the Location once you are done with the file.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号