Figure 1. CustomerInfo Schema Structure
Figure 2. Sftp Bre Schema Structure
Figure 3. Customer A Rule
Figure 4. Customer B Rule
Figure 5. Customer C Rule
Figure 6. Business Process Orchestration
varSftpBreXmlDoc.LoadXml(@"<ns0:SftpInfo xmlns:ns0='http://TechNetWiki.DynamicSftpPort.SftpBreSchema'> <Address></Address> <UserName></UserName> <Password></Password> <CustomerId></CustomerId> </ns0:SftpInfo>"); msgSftpBre = varSftpBreXmlDoc; msgSftpBre.CustomerId=msgIn.CustomerId;
varSftpBreXmlDoc.LoadXml(@"<ns0:SftpInfo xmlns:ns0=
'http://TechNetWiki.DynamicSftpPort.SftpBreSchema'
>
<Address></Address>
<UserName></UserName>
<Password></Password>
<CustomerId></CustomerId>
</ns0:SftpInfo>");
msgSftpBre = varSftpBreXmlDoc;
msgSftpBre.CustomerId=msgIn.CustomerId;
msgOut=msgIn; msgOut(SFTP.UserName)=msgSftpBre.UserName; msgOut(SFTP.Password)=msgSftpBre.Password; msgOut(SFTP.AccessAnyServerHostKey)=true; DynamicSFTPPort(Microsoft.XLANGs.BaseTypes.Address)=msgSftpBre.Address + "%MessageID%.xml";
msgOut=msgIn;
msgOut(SFTP.UserName)=msgSftpBre.UserName;
msgOut(SFTP.Password)=msgSftpBre.Password;
msgOut(SFTP.AccessAnyServerHostKey)=
true
;
DynamicSFTPPort(Microsoft.XLANGs.BaseTypes.Address)=msgSftpBre.Address +
"%MessageID%.xml"
Figure 7. Set Dynamic Port Binding