I am consuming webservice which is giving response in SOAP with Attachment.
However using UiPath Http Request acitivity downloaded files are corrupted (excluding pdfs).
Response:
–WMBMIME2Boundaryurn_uuid_E2F4C29F6689F74FEC1678188578967
Content-Type: text/xml; charset=utf-8
Content-Transfer-Encoding: binary
Content-ID: ***
The question is - is usage of task class inside invoke code possible in UiPath or is there maybe any other way to get correct file out of this kind of response?
Did you use the response file as attachement field and provided the fulpath of the file?
And yes we can write the invoke code as well …make sure you import the required namespaces in the import at the bottom of studio and also makesure you select the correct programming language in the invoke code properties
Managed to implement solution from the link without using async syntax but indeed it looks like UiPath HTTP request activity doesn’t support downloading files as soap attachments.
I tried this too but after passing wsdl url there is error “no valid contracts” (when I pass url in SoapUi however there are no problems at all - can the reason be that it’s IBM server?). Also, if I’m not mistaken activity you linked doesn’t handle file downloads so any response would need to be processed with multipart anyway.