I need to pass a binary file using the content routing and pass thru pipelines. This has been done without any problems. However, I also want to be able to use the filename as a message (attribute or element) to an orchestration.
You can have your orchestration subscribe to the binary file – declare a message of type System.Xml.XmlDocument. add a receive shape for this message amd bind the orchestration port to your receive port. This way both the orchestration and your original send port will receive the message.
Once the orchestration has received the message, you can access the file name in the FILE.ReceivedFilename property of this message.