<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Download file from vault server using soap</title><link>https://www.aras.com/community/f/development/3221/download-file-from-vault-server-using-soap</link><description>Hi ,

I want to download file from vault server using java and soap message . I have set the header and body accordingly for HTTP request . But I am getting following request .

&amp;lt;SOAP-ENV:Envelope xmlns:SOAP-ENV=&amp;quot; &amp;quot;&amp;gt;schemas.xmlsoap.org/.../&amp;quot;&amp;gt;&amp;lt;SOAP-ENV</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Download file from vault server using soap</title><link>https://www.aras.com/community/thread/519?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2017 13:28:33 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:46abf465-dedf-4b74-aee5-64812ed8a133</guid><dc:creator>Eli Donahue</dc:creator><description>Hi Ketan,

The first approach will work with the following url format:
&lt;pre style="padding-left:30px;"&gt;localhost/.../vaultserver.aspx&lt;strong&gt;&amp;amp;vaultId={id}&lt;/strong&gt;&lt;/pre&gt;
You will also need to add the following line to your VaultServerConfig.xml file and restart IIS to allow access to the vault file without authentication:
&lt;pre style="padding-left:30px;"&gt; &amp;lt;enforce_user_credentials&amp;gt;0&amp;lt;/enforce_user_credentials&amp;gt;&lt;/pre&gt;

&lt;hr /&gt;

Eli Donahue

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download file from vault server using soap</title><link>https://www.aras.com/community/thread/364?ContentTypeID=1</link><pubDate>Thu, 06 Apr 2017 02:43:56 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:7dd8620c-2a1c-40bd-8490-b17b85e2b3a0</guid><dc:creator>Former Member</dc:creator><description>Hi ,

I have tried 2 methods to download file :

&lt;strong&gt;Method 1:&lt;/strong&gt;

I have tried following request :

localhost/.../vaultserver.aspx

But it is not working for vault server .

&lt;strong&gt;Method 2:&lt;/strong&gt;

Now I am trying to send a request to vault server using Java code

HttpPost httpConnection = new HttpPost(&amp;quot;&amp;quot;&amp;gt;localhost/.../vaultserver.aspx&amp;quot;)
HttpClient httpClient = new DefaultHttpClient();
String messageString = &amp;quot;&amp;lt;Item action=&amp;quot;get&amp;quot; type=&amp;quot;File&amp;quot; id={fileID}&amp;gt; &amp;lt;/Item&amp;gt;

httpConnection.addHeader(&amp;quot;SOAPACTION&amp;quot;, &amp;quot;DownloadFile&amp;quot;);

MultipartEntity reqEntity = new MultipartEntity();

reqEntity.addPart(&amp;quot;AUTHUSER&amp;quot;, new StringBody(&amp;quot;admin&amp;quot;));
reqEntity.addPart(&amp;quot;DATABASE&amp;quot;, new StringBody(&amp;quot;InnovatorDemo&amp;quot;));
reqEntity.addPart(&amp;quot;SOAPACTION&amp;quot;, new StringBody(&amp;quot;DownloadFile&amp;quot;));
reqEntity.addPart(&amp;quot;XMLdata&amp;quot;, new StringBody(messageString));
reqEntity.addPart(&amp;quot;AUTHPASSWORD&amp;quot;, new StringBody(&amp;quot;innovator&amp;quot;));
httpConnection.setEntity(reqEntity);

ResponseHandler&amp;lt;String&amp;gt; response = new BasicResponseHandler();
responseMesaage = httpClient.execute(httpConnection, response);

In this case it gives me following error :

&amp;lt;SOAP-ENV:Envelope xmlns:SOAP-ENV=”schemas.xmlsoap.org/.../”&amp;gt;&amp;lt;SOAP-ENV:Body&amp;gt;&amp;lt;SOAP-ENV:Fault xmlns:af=”www.aras.com/.../faultcode&amp;gt;&amp;lt;faultstring&amp;gt;ProcessApplyItem: Vault Server currently does not support “downloadFile” action of Files&amp;lt;/faultstring&amp;gt;&amp;lt;detail&amp;gt;&amp;lt;af:legacy_detail&amp;gt;ProcessApplyItem: Vault Server currently does not support “downloadFile” action of Files&amp;lt;/af:legacy_detail&amp;gt;&amp;lt;af:legacy_faultactor /&amp;gt;&amp;lt;/detail&amp;gt;&amp;lt;/SOAP-ENV:Fault&amp;gt;&amp;lt;/SOAP-ENV:Body&amp;gt;&amp;lt;/SOAP-ENV:Envelope&amp;gt;

&amp;nbsp;

Thanks for reply !

&amp;nbsp;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download file from vault server using soap</title><link>https://www.aras.com/community/thread/354?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2017 05:05:17 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:c568e8ed-9db2-48a1-ba7c-5f8fee21fdb5</guid><dc:creator>Yoann Maingon</dc:creator><description>Hi,

There was a forum thread about this a while ago. It wasn&amp;#39;t in Java it was in VBA  :-))

&lt;a href="http://community.aras.com/en/forums/topic/648-developers-forum-web-services-wsdl/"&gt;community.aras.com/.../&lt;/a&gt;

There might have been some security changes that have impacted that, but I believe that&amp;#39;s a good start.

If it doesn&amp;#39;t answer your question, send us your http request.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>