Python Forum

Full Version: How to retrieve and save attachments returned by SOAP web service
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I'm trying to invoke a SOAP web service, that returns multiple attachments in the response. I would like to automate invoking this service and save the attachment files in the file system.

I tried using 'requests' library and I can see the binary content being retrieved when I print the 'response.content'. How do I extract each attachment ?

If 'requests' is not the right way, please advise alternatives. I am a newbie and any guidance will help.

Thanks,
Ashwin