ImportKit request under the ExchangeWSExportImportManager wsdl always fails

We are developing a python script to make an Upload request to the SOAP API using:
<wsdl:message name="importKit2Request">
<wsdl:part name="token" type="xsd:string"> </wsdl:part>
<wsdl:part name="attachedFile" type="xsd:string"> </wsdl:part>
</wsdl:message>
when we call:
importKit2(token=WSTOKEN, attachedFile=file_contents)
if file_contents points to an xliff or zip on the server such as "c:\temp\tasks_250199_-_MyCompany-Test_-_testing_5_126627_ja_JP_xliff.zip" the function creates an upload file but that file is always blank and we get the error "java.lang.RuntimeException: Too many/few attachments sent [0] Please limit to 1". 
Even when we call the function using a literal string of the contents of the xliff or a bytestream/octet encoded file the procedure give the too many/few error or a "com.idiominc.ws.WSRuntimeException: The filename, directory name, or volume label syntax is incorrect (covers java.io.IOException: The filename, directory name, or volume label syntax is incorrect)" error.
I need to know how the "Attached file" need to be referenced or the data type needed for it. It is clear that the system has access to the file but can't properly create the upload file for some reason.
Screenshot of a Windows file explorer showing a 'temp' directory with multiple files, some highlighted, with names starting with 'upload' and 'tasks', and file types '.zip' and '.xliff'. A note on the image states an issue with the ImportKit function creating blank upload files.


Generated Image Alt-Text
[edited by: RWS Community AI at 1:24 PM (GMT 1) on 23 Apr 2025]