<?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 Re: Custom webservice/webscript to upload files in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/custom-webservice-webscript-to-upload-files/m-p/254386#M207516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Whats the best way to implement this custom service? Can we create a custom axis webservice that makes use of various Repository Services (ContentService, FileFolderService etc) and package it along with Alfresco? Has anyone done this before?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;The best way to implement upload services is to implement a custom WebScript that allows you to write your own code using the Alfresco Javascript API or the Alfresco Java API. In this way your custom business logic are written using a low-level and complete API of Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The upload WebScript will be your own extended REST API of Alfresco and for an upload service this means that you can stream your binaries file using HTTP protocol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The basic SOAP service available in the Alfresco Web Services API can't be used for large binaries because otherwise you will get OOME for your client application. This depends on the specific Apache Axis 1.4 implementation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need to use SOAP with the Alfresco Web Services API you can use the ContentService or you can use the RepositoryService adding a CML component named CMLWriteContent to set the binary as one the fields of the Java object. Remember that all the binaries in the SOAP API will be encoded in Base64 inside the SOAP message (!!!!) that's why it can't be used for large files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Oct 2011 13:33:57 GMT</pubDate>
    <dc:creator>openpj</dc:creator>
    <dc:date>2011-10-31T13:33:57Z</dc:date>
    <item>
      <title>Custom webservice/webscript to upload files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-webservice-webscript-to-upload-files/m-p/254385#M207515</link>
      <description>Hi,We have 3-4 client applications written in Java/.Net connecting to our Alfresco Repository through out of the box WebService API's. There is a need now to control the way the files/folders are uploaded to Alfresco, basically we wanted the folders/content to be stored in a hierarchical folder stru</description>
      <pubDate>Wed, 19 Oct 2011 22:11:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-webservice-webscript-to-upload-files/m-p/254385#M207515</guid>
      <dc:creator>unknown-user</dc:creator>
      <dc:date>2011-10-19T22:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Custom webservice/webscript to upload files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-webservice-webscript-to-upload-files/m-p/254386#M207516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Whats the best way to implement this custom service? Can we create a custom axis webservice that makes use of various Repository Services (ContentService, FileFolderService etc) and package it along with Alfresco? Has anyone done this before?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;The best way to implement upload services is to implement a custom WebScript that allows you to write your own code using the Alfresco Javascript API or the Alfresco Java API. In this way your custom business logic are written using a low-level and complete API of Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The upload WebScript will be your own extended REST API of Alfresco and for an upload service this means that you can stream your binaries file using HTTP protocol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The basic SOAP service available in the Alfresco Web Services API can't be used for large binaries because otherwise you will get OOME for your client application. This depends on the specific Apache Axis 1.4 implementation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need to use SOAP with the Alfresco Web Services API you can use the ContentService or you can use the RepositoryService adding a CML component named CMLWriteContent to set the binary as one the fields of the Java object. Remember that all the binaries in the SOAP API will be encoded in Base64 inside the SOAP message (!!!!) that's why it can't be used for large files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 13:33:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-webservice-webscript-to-upload-files/m-p/254386#M207516</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2011-10-31T13:33:57Z</dc:date>
    </item>
  </channel>
</rss>

