Page 1 of 1

.net webservice for download

PostPosted:Wed Oct 22, 2014 5:29 pm
by devilkine
Hi,
Exist there a webservice that allows me to pass a path and you can download the document form .net?

please some exaple
sorry for my english

Re: .net webservice for download

PostPosted:Thu Oct 23, 2014 2:36 pm
by jllort
You can use rest directly or use our sdk for it http://wiki.openkm.com/index.php/Csharp_webservice_dll, in case you decide for our sdk the methods are:
Code: Select all
Byte[] getContent(String docPath, Boolean checkout);
Byte[] getContent(String token, String docPath, Boolean checkout);
Byte[] getContentByVersion(String docId, String versionId);
Byte[] getContentByVersion(String token, String docId, String versionId);
To take a look at rest services, http://demo.openkm.com/OpenKM/services/ ... ment?_wadl ( user1 / pass1 ) you also got there a method called getContent with a query string parameter called docId ( what can be path or uuid )
Code: Select all
<resource path="getContent">
  <method name="GET">
    <request>
      <param name="docId" style="query" type="xs:string"/>
    </request>
    <response>
      <representation mediaType="application/octet-stream"/>
    </response>
  </method>
</resource>