Monday, July 13, 2009

Dynamic File Adapter

Answer:

a) Create a send port of type dynamic
b) Before calling the send shape use an expression and enter the following code:
SendPortName(Microsoft .XLANGs.BaseTypes.Address) = “FILE://[Path]/Message.Xml”
Or
SendPortName(Microsoft .XLANGs.BaseTypes.Address) = “FILE://[Path]/” + Message.Destination + “/Message.Xml”

Message.Destination – Promoted Property of incoming message which holds the path

No comments:

Post a Comment