My problem is I would like to convert (from binary to PDF/ZIP)and save the attachments from SOAP POST response. Unfortunately I can’t share any sample files, but it is proper .pdf files.
For this task I’m using the HTTP request activity, because the SOAP activity is not accepting my WSDL link.
I already tried this ResourcePath option and downloaded the file.
Unfortunately I can’t open the downloaded file, because it says something went wrong with the file.
I’m not sure what is the issue, I’m sure the SOAP service sending the file(.pdf/.zip) as binary format. Do you think it could be an issue?
Has this endpoint been used before? I mean, has anyone been able to successfully download and open a file that was downloaded via a request using this endpoint?
I suggest using postman for a test. You can create a request there and check if the file was downloaded successfully. If not, I’d bet the problem must be on the API side.
I took a look at a project that I built which uses the HTTP request activity to save a .zip file, and I noticed some things and decided to share with you:
AcceptFormat is set to ANY
The ResourcePath value includes a name and the extension for the file. I am not sure if it works if you provide only the folder name.
In my case, the Content-Type Header was not used and it works.
However I noticed that the attachment file is changing each response of the SOAP POST call. Which means somehow the file name and extension needs to dynamic in RecoursePath parameter. ( RecoursePath: “DownloadingFolderPath”+this part needs to be dynamic (Because I wont know what kind of file is coming in the response)
I think this is the reason why I can’t download my files. Do you have any suggestions?
Thanks in advance,