I am using dynamic port to create FTP, SFTP and FILE port to send the file.
For SFTP connection I use
transferFilePort(Microsoft.XLANGs.BaseTypes.Address) = varURL; // SFTP URL
transferFilePort(Microsoft.XLANGs.BaseTypes.TransportType) = “nsoftware.SFTP v3”;
msgSendFile(nsoftware.BizTalk.SFTP.SSHAcceptServerHostKeyAcceptAny ) = true;
I am looking for a logic where I pass a property XML which has all the SFTP properties and it updates to Context property of the message. Such that This logic would replace the above expressions.
For ex:
<Address>varURL</Address><TransportType>nsoftware.SFTP v3</TransportType><SSHAcceptServerHostKeyAcceptAny>true</SSHAcceptServerHostKeyAcceptAny> set this xml somehow instead of above expression. I need to do this as I am thinking of creating a generic dynamic send port which could be configured by reading the values from external database. So if it is SFTP then all set of SFTP properties would be pulled over from some SQL database in xml format to orchestration and update context property to route the file. I am not finding the way to set the properties using XML at runtime.