<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Get pdf file from soap webservice attachment in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Get-pdf-file-from-soap-webservice-attachment/m-p/68102#M20707</link>
    <description>Hi Team,&lt;BR /&gt;&lt;BR /&gt;I am trying to get a pdf file using soap 1.2 webservices. when I am using the service in SOAP UI it works fine but when I am using a code stage to execute the webservice in Blue Prism it returns some unreadable data in text form. Foe eg- "&lt;BR /&gt;%PDF-1.5&lt;BR /&gt;%&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&lt;BR /&gt;1 0 obj&lt;BR /&gt;&amp;lt;&amp;lt;/Type/Catalog/Pages 2 0 R/Lang(en-US) /StructTreeRoot 8 0 R/MarkInfo&amp;lt;&amp;lt;/Marked true&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;endobj&lt;BR /&gt;2 0 obj&lt;BR /&gt;&amp;lt;&amp;lt;/Type/Pages/Count 1/Kids[ 3 0 R] &amp;gt;&amp;gt;&lt;BR /&gt;endobj&lt;BR /&gt;3 0 obj&lt;BR /&gt;&amp;lt;&amp;lt;/Type/Page/Parent 2 0 R/Resources&amp;lt;&amp;lt;/Font&amp;lt;&amp;lt;/F1 5 0 R&amp;gt;&amp;gt;/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] &amp;gt;&amp;gt;/MediaBox[ 0 0 612 792] /Contents 4 0 R/Group&amp;lt;&amp;lt;/Type/Group/S/Transparency/CS/DeviceRGB&amp;gt;&amp;gt;/Tabs/S/StructParents 0&amp;gt;&amp;gt;&lt;BR /&gt;endobj&lt;BR /&gt;4 0 obj&lt;BR /&gt;&amp;lt;&amp;lt;/Filter/FlateDecode/Length 162&amp;gt;&amp;gt;&lt;BR /&gt;stream&lt;BR /&gt;x&amp;#65535;M&amp;#65535;&amp;#65535;&lt;BR /&gt;&amp;#65535;@&amp;#20;D&amp;#65535;&amp;#65535;]&amp;#31;QA,|$$ &amp;#65535;&amp;#65535;Ҙ&amp;#65535;&amp;#17;&amp;#65535;?k&amp;#17;&amp;#65535;&amp;#25;&amp;#65535;&amp;#65535;&amp;#65535;3&amp;#65535;&amp;#65535;)&amp;#65535;&amp;#21;T&amp;#65535;&amp;#65535;&amp;#65535;J&amp;#20;F&lt;BR /&gt;o&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;B&amp;#65535;A&lt;BR /&gt;e&amp;#65535;&amp;#17;&amp;#65535;*u#&amp;#65535;&amp;#65535;P&amp;#24;&amp;#65535;Hђ&amp;#65535;O&amp;#11;&amp;#65535;&amp;#65535;&amp;#65535;xG&amp;#29;&amp;#7;&amp;#65535;0L&amp;#15;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;Oov"&amp;#65535;a8&amp;#65535;~&amp;#65535;&amp;#65535;NG&amp;#65535;&amp;#28;&amp;#65535;&amp;#65535;-~&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;%l&amp;#65535;&amp;#65535;&amp;#65535;&amp;#18;?&amp;#12;&amp;#12;+?&lt;BR /&gt;endstream&lt;BR /&gt;endobj&lt;BR /&gt;5 0 obj&lt;BR /&gt;&amp;lt;&amp;lt;/Type/Font/Subtype/TrueType/Name/F1/BaseFont/ABCDEE+Calibri/Encoding/WinAnsiEncoding/FontDescriptor 6 0 R/FirstChar 32/LastChar 117/Widths 15 0 R&amp;gt;&amp;gt;&lt;BR /&gt;endobj&lt;BR /&gt;6 0 obj&lt;BR /&gt;&amp;lt;&amp;lt;/Type/FontDescriptor/FontName/ABCDEE+Calibri/Flags 32/ItalicAngle 0/Ascent 750/Descent -250/CapHeight 750/AvgWidth 521/MaxWidth 1743/FontWeight 400/XHeight 250/StemV 52/FontBBox[ -503 -250 1240 750] /FontFile2 16 0 R&amp;gt;&amp;gt;&lt;BR /&gt;endobj&lt;BR /&gt;7 0 obj"&lt;BR /&gt;&lt;BR /&gt;Question 1 . Is it possible to get file using VB.net code with soap query?.&lt;BR /&gt;question 2 . if yes, then How ?&lt;BR /&gt;question 3. If not, Then is there any other way I can use to get the file.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Yugal Pratap Singh&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Yugal Pratap Singh&lt;BR /&gt;Project Engineer&lt;BR /&gt;Credit Suisse&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 12 Jan 2023 12:46:00 GMT</pubDate>
    <dc:creator>Yugal_Pratap_Singh</dc:creator>
    <dc:date>2023-01-12T12:46:00Z</dc:date>
    <item>
      <title>Get pdf file from soap webservice attachment</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-pdf-file-from-soap-webservice-attachment/m-p/68102#M20707</link>
      <description>Hi Team,&lt;BR /&gt;&lt;BR /&gt;I am trying to get a pdf file using soap 1.2 webservices. when I am using the service in SOAP UI it works fine but when I am using a code stage to execute the webservice in Blue Prism it returns some unreadable data in text form. Foe eg- "&lt;BR /&gt;%PDF-1.5&lt;BR /&gt;%&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&lt;BR /&gt;1 0 obj&lt;BR /&gt;&amp;lt;&amp;lt;/Type/Catalog/Pages 2 0 R/Lang(en-US) /StructTreeRoot 8 0 R/MarkInfo&amp;lt;&amp;lt;/Marked true&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;endobj&lt;BR /&gt;2 0 obj&lt;BR /&gt;&amp;lt;&amp;lt;/Type/Pages/Count 1/Kids[ 3 0 R] &amp;gt;&amp;gt;&lt;BR /&gt;endobj&lt;BR /&gt;3 0 obj&lt;BR /&gt;&amp;lt;&amp;lt;/Type/Page/Parent 2 0 R/Resources&amp;lt;&amp;lt;/Font&amp;lt;&amp;lt;/F1 5 0 R&amp;gt;&amp;gt;/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] &amp;gt;&amp;gt;/MediaBox[ 0 0 612 792] /Contents 4 0 R/Group&amp;lt;&amp;lt;/Type/Group/S/Transparency/CS/DeviceRGB&amp;gt;&amp;gt;/Tabs/S/StructParents 0&amp;gt;&amp;gt;&lt;BR /&gt;endobj&lt;BR /&gt;4 0 obj&lt;BR /&gt;&amp;lt;&amp;lt;/Filter/FlateDecode/Length 162&amp;gt;&amp;gt;&lt;BR /&gt;stream&lt;BR /&gt;x&amp;#65535;M&amp;#65535;&amp;#65535;&lt;BR /&gt;&amp;#65535;@&amp;#20;D&amp;#65535;&amp;#65535;]&amp;#31;QA,|$$ &amp;#65535;&amp;#65535;Ҙ&amp;#65535;&amp;#17;&amp;#65535;?k&amp;#17;&amp;#65535;&amp;#25;&amp;#65535;&amp;#65535;&amp;#65535;3&amp;#65535;&amp;#65535;)&amp;#65535;&amp;#21;T&amp;#65535;&amp;#65535;&amp;#65535;J&amp;#20;F&lt;BR /&gt;o&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;B&amp;#65535;A&lt;BR /&gt;e&amp;#65535;&amp;#17;&amp;#65535;*u#&amp;#65535;&amp;#65535;P&amp;#24;&amp;#65535;Hђ&amp;#65535;O&amp;#11;&amp;#65535;&amp;#65535;&amp;#65535;xG&amp;#29;&amp;#7;&amp;#65535;0L&amp;#15;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;Oov"&amp;#65535;a8&amp;#65535;~&amp;#65535;&amp;#65535;NG&amp;#65535;&amp;#28;&amp;#65535;&amp;#65535;-~&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;%l&amp;#65535;&amp;#65535;&amp;#65535;&amp;#18;?&amp;#12;&amp;#12;+?&lt;BR /&gt;endstream&lt;BR /&gt;endobj&lt;BR /&gt;5 0 obj&lt;BR /&gt;&amp;lt;&amp;lt;/Type/Font/Subtype/TrueType/Name/F1/BaseFont/ABCDEE+Calibri/Encoding/WinAnsiEncoding/FontDescriptor 6 0 R/FirstChar 32/LastChar 117/Widths 15 0 R&amp;gt;&amp;gt;&lt;BR /&gt;endobj&lt;BR /&gt;6 0 obj&lt;BR /&gt;&amp;lt;&amp;lt;/Type/FontDescriptor/FontName/ABCDEE+Calibri/Flags 32/ItalicAngle 0/Ascent 750/Descent -250/CapHeight 750/AvgWidth 521/MaxWidth 1743/FontWeight 400/XHeight 250/StemV 52/FontBBox[ -503 -250 1240 750] /FontFile2 16 0 R&amp;gt;&amp;gt;&lt;BR /&gt;endobj&lt;BR /&gt;7 0 obj"&lt;BR /&gt;&lt;BR /&gt;Question 1 . Is it possible to get file using VB.net code with soap query?.&lt;BR /&gt;question 2 . if yes, then How ?&lt;BR /&gt;question 3. If not, Then is there any other way I can use to get the file.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Yugal Pratap Singh&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Yugal Pratap Singh&lt;BR /&gt;Project Engineer&lt;BR /&gt;Credit Suisse&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Jan 2023 12:46:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-pdf-file-from-soap-webservice-attachment/m-p/68102#M20707</guid>
      <dc:creator>Yugal_Pratap_Singh</dc:creator>
      <dc:date>2023-01-12T12:46:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get pdf file from soap webservice attachment</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-pdf-file-from-soap-webservice-attachment/m-p/68103#M20708</link>
      <description>Hello &lt;A class="user-content-mention" data-sign="@" data-contactkey="b9974f31-f4e5-45f8-a965-2f74e2fc0200" data-tag-text="@Yugal Pratap Singh" href="https://community.blueprism.com/network/profile?UserKey=b9974f31-f4e5-45f8-a965-2f74e2fc0200" data-itemmentionkey="40b12f31-e7b4-4b75-95e8-532622eecb5e"&gt;@Yugal Pratap Singh&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;Can you share some details about how you're invoking the SOAP web service from your Code stage? What .NET objects are you using?&lt;BR /&gt;&lt;BR /&gt;To answer your main question, yes it's possible.&lt;BR /&gt;&lt;BR /&gt;Cheers,​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Jan 2023 17:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-pdf-file-from-soap-webservice-attachment/m-p/68103#M20708</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2023-01-12T17:23:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get pdf file from soap webservice attachment</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-pdf-file-from-soap-webservice-attachment/m-p/68104#M20709</link>
      <description>Hi Eric,&lt;BR /&gt;Thank You for replying so fast.&lt;BR /&gt;&lt;BR /&gt;This is the code-&lt;BR /&gt;'Set and instantiate our working objects&lt;BR /&gt;Dim Req As Object&lt;BR /&gt;Dim sEnv As String&lt;BR /&gt;Dim Resp As Object&lt;BR /&gt;'Dim Resp As New MSXML2.DOMDocument60&lt;BR /&gt;&lt;BR /&gt;'Dim Resp As Object&lt;BR /&gt;Req = CreateObject("MSXML2.XMLHTTP")&lt;BR /&gt;Resp = CreateObject("MSXML2.DOMDocument.6.0")&lt;BR /&gt;&lt;BR /&gt;Req.Open ("Post", RequestURL, False, AuthenticationUsername, AuthenticationPassword)&lt;BR /&gt;Req.setRequestHeader ("Content-Type", "application/soap+xml;charset=UTF-8;action="""")&lt;BR /&gt;Req.setRequestHeader ("username", AuthenticationUsername) &lt;BR /&gt;Req.setRequestHeader ("password", AuthenticationPassword)&lt;BR /&gt;sEnv = ""&lt;BR /&gt;' we create our SOAP envelope for submission to the Web Service&lt;BR /&gt;sEnv = sEnv &amp;amp; "&amp;lt;soap:Envelope xmlns:soap = ""http://www.w3.org/2003/05/soap-envelope"" xmlns:req = ""&amp;gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Soap Query&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;sEnv = sEnv &amp;amp; "&amp;lt;/soap:Envelope&amp;gt;"&lt;BR /&gt;'MsgBox(sEnv)&lt;BR /&gt;' Send SOAP Request&lt;BR /&gt;Req.send (sEnv)&lt;BR /&gt;&lt;BR /&gt;' Display results in MessageBox&lt;BR /&gt;responseText = Req.responseText&lt;BR /&gt;&lt;BR /&gt;'clean up code&lt;BR /&gt;Req = Nothing&lt;BR /&gt;Resp = Nothing&lt;BR /&gt;&lt;BR /&gt;I am using -&amp;gt;System.Xml.Serialization,System.Collections.Generic,System.Net,text,webservice,IO,etc name spaces&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Yugal Pratap Singh&lt;BR /&gt;Associate Consultant&lt;BR /&gt;Capgemini&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Jan 2023 07:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-pdf-file-from-soap-webservice-attachment/m-p/68104#M20709</guid>
      <dc:creator>Yugal_Pratap_Singh</dc:creator>
      <dc:date>2023-01-13T07:03:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get pdf file from soap webservice attachment</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-pdf-file-from-soap-webservice-attachment/m-p/68105#M20710</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="b9974f31-f4e5-45f8-a965-2f74e2fc0200" data-tag-text="@Yugal Pratap Singh" href="https://community.blueprism.com/network/profile?UserKey=b9974f31-f4e5-45f8-a965-2f74e2fc0200" data-itemmentionkey="9b7fad5f-35d6-4c13-8176-dbcd0b21dff3"&gt;@Yugal Pratap Singh&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;Within the Response object there should be a ResponseBody property. If all that's being returned to you is the PDF you should be able to take the content from ResponseBody and perform a binary write straight to disk (or pass it back to the calling process as a Binary data item). There's an example on &lt;A href="https://blog.netnerds.net/2007/01/vbscript-download-and-save-a-binary-file/" target="_blank" rel="noopener"&gt;this&lt;/A&gt; page although it's not the best I think.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Jan 2023 15:34:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-pdf-file-from-soap-webservice-attachment/m-p/68105#M20710</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2023-01-13T15:34:00Z</dc:date>
    </item>
  </channel>
</rss>

