After a couple of hours I found the following link with a detailed explanation of calling AIF-Functions from a button:
http://www.dynamicscare.com/blog/ind...d-aif-document
I think using the AifFileSystemAdapter and customizing outbound pipelines should be the solution.
Is it possible to get the filename of the XML-Message which was saved by the AifFileSystemAdapter?