Python Forum
How to retrieve and save attachments returned by SOAP web service
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to retrieve and save attachments returned by SOAP web service
#1
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to access values returned from inquirer cspower 6 695 Dec-26-2023, 09:34 PM
Last Post: cspower
  how to save to multiple locations during save cubangt 1 509 Oct-23-2023, 10:16 PM
Last Post: deanhystad
  code to send attachments contained on the drive. stefanoste78 1 822 Oct-12-2022, 02:16 AM
Last Post: Larz60+
  I get attachment paperclip on email without any attachments monika_v 5 1,912 Mar-19-2022, 10:20 PM
Last Post: cosmarchy
  Unable to send email attachments cosmarchy 7 2,441 Mar-09-2022, 09:29 PM
Last Post: bowlofred
  SQLAlchemy Object Missing when Null is returned Personne 1 1,676 Feb-19-2022, 02:50 AM
Last Post: Larz60+
  Sending Attachments via smtplib [SOLVED] AlphaInc 3 2,107 Oct-28-2021, 12:39 PM
Last Post: AlphaInc
  Getting "name 'get_weather' is not defined error and no json_data returned? trthskr4 6 3,528 Sep-14-2021, 09:55 AM
Last Post: trthskr4
  Libraries installed with pipenv, but ModuleNotFoundError returned jpncsu 2 2,945 Sep-06-2021, 07:24 PM
Last Post: jpncsu
  Exception: Returned Type Mismatch Error devansing 1 5,088 Mar-06-2020, 07:26 PM
Last Post: ndc85430

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020