Forum Discussion

Former_Member's avatar
Former_Member
Ideator I
9 years ago

Download file from vault server using soap

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 . <SOAP-ENV:Envelope xmlns:SOAP-ENV="">schemas.xmlsoap.org/.../"><SOAP-ENV:Body><SOAP-ENV:Fault xmlns:af="">www.aras.com/.../faultcode><faultstring>ProcessApplyItem: Vault Server currently does not support "downloadFile" action of Files</faultstring><detail><af:legacy_detail>ProcessApplyItem: Vault Server currently does not support "downloadFile" action of Files</af:legacy_detail><af:legacy_faultactor /></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>   Is there any other process , actions to perform download file from vault server  ? Can anybody help me to resolve this issue ? Thanks for reply !

3 Replies

  • Hi, There was a forum thread about this a while ago. It wasn't in Java it was in VBA  :-)) community.aras.com/.../ There might have been some security changes that have impacted that, but I believe that's a good start. If it doesn't answer your question, send us your http request.
  • Hi , I have tried 2 methods to download file : Method 1: I have tried following request : localhost/.../vaultserver.aspx But it is not working for vault server . Method 2: Now I am trying to send a request to vault server using Java code HttpPost httpConnection = new HttpPost("">localhost/.../vaultserver.aspx") HttpClient httpClient = new DefaultHttpClient(); String messageString = "<Item action="get" type="File" id={fileID}> </Item> httpConnection.addHeader("SOAPACTION", "DownloadFile"); MultipartEntity reqEntity = new MultipartEntity(); reqEntity.addPart("AUTHUSER", new StringBody("admin")); reqEntity.addPart("DATABASE", new StringBody("InnovatorDemo")); reqEntity.addPart("SOAPACTION", new StringBody("DownloadFile")); reqEntity.addPart("XMLdata", new StringBody(messageString)); reqEntity.addPart("AUTHPASSWORD", new StringBody("innovator")); httpConnection.setEntity(reqEntity); ResponseHandler<String> response = new BasicResponseHandler(); responseMesaage = httpClient.execute(httpConnection, response); In this case it gives me following error : <SOAP-ENV:Envelope xmlns:SOAP-ENV=”schemas.xmlsoap.org/.../”><SOAP-ENV:Body><SOAP-ENV:Fault xmlns:af=”www.aras.com/.../faultcode><faultstring>ProcessApplyItem: Vault Server currently does not support “downloadFile” action of Files</faultstring><detail><af:legacy_detail>ProcessApplyItem: Vault Server currently does not support “downloadFile” action of Files</af:legacy_detail><af:legacy_faultactor /></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>   Thanks for reply !  
  • Hi Ketan, The first approach will work with the following url format:
    localhost/.../vaultserver.aspx&vaultId={id}
    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:
     <enforce_user_credentials>0</enforce_user_credentials>

    Eli Donahue Aras Labs Software Engineer