none
Download .pdf attachments from SOAP response using Powershell RRS feed

  • Question

  • Hi Geeks,

    I am trying to download the PDF attachment from SOAP response, but unable to get the attachments. Is there any standard code to download the embedded attachment in SOAP response? 

    I am getting the response in encoded value. So, need help on that as well. 

    In SOAP UI software, we are having the download attachment button to download the attachment, but not sure how Powershell script to be written for this? 

    Can you please help at earliest?

    • Moved by Bill_Stewart Tuesday, December 18, 2018 12:26 AM Unanswerable drive-by question
    Thursday, October 11, 2018 7:18 AM

All replies

  • There is no magic answer to this.  You must use the methods published by the web service.  If the method returns an encoded binary stream then you need to save it to a file.


    \_(ツ)_/

    Thursday, October 11, 2018 8:47 AM
  • Thank you Jrv.

    Do we have sample code to download the binary stream and get the .pdf content from it? 

    Thursday, October 11, 2018 11:07 AM
  • Ask the service provider for instructions on how to use their service. They likely have a method for downloading files if that is what the service is for.


    \_(ツ)_/

    Thursday, October 11, 2018 5:38 PM