I cannot retain the original filename while send file through a web service.
I did a simple test:
-A simple schema in an assembly deployed to my BTS Server
-A one-way webservice published from that schema and at the same time, let the wizard created a SOAP receive port
-created a FILE send port subscribed to that SOAP receive port
-Add the webservice reference in another biztalk project and send file to webservice from that project
When i define the receive file to be %MessageID%.xml in the FILE send port, everything is fine. But when i changed the macro to be %SourceFileName%, the output file’s name is not set to be the original filename, it’s just a file called %SourceFileName%.
Is that because SOAP adapter doesn’t keep the message context property(such as ReceivedFileName)?
Any suggestions to deal with it?
Thx.