<?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 Webscript response template in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/webscript-response-template/m-p/227618#M180748</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to&amp;nbsp; implement a distributed ECM Architecture using Alfresco as backend Content server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The architecture components are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; -A foreign Web Application (view)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; -Alfresco 3.2, (Model)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; -A Connector (controller/Dispatcher)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the idea behind the connector is to provide more interfaces to other ECM products in the future, but actually it exposes only interface to Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The communication between the connector and the web App. will be realized using Servlets, whereas the connector communicates with Alfresco Repo. Server using RESTful webscripts, which generate FreeMarker Responses based on templates (XML, HTM, JSON etc…).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem: the connector receive a request from the web app. for example to download ein&amp;nbsp; file (Doc, PDF, XML ,txt or wathever) and forward that request to a webscript ,possibly costum java backed, but also built-in web scripts in some cases, that web script must send the content back to the connector as File Object that can be appened to a HttpServletResponse Object andsent back to the web app. But i don't know which FreeMarker Template i must use, because the connector act as middleware and therefore, and the webscripts by alfresco assume the the client provide a Browser .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Jul 2010 20:20:03 GMT</pubDate>
    <dc:creator>simo2010</dc:creator>
    <dc:date>2010-07-17T20:20:03Z</dc:date>
    <item>
      <title>Webscript response template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-response-template/m-p/227618#M180748</link>
      <description>Hi,I want to&amp;nbsp; implement a distributed ECM Architecture using Alfresco as backend Content server.The architecture components are: -A foreign Web Application (view) -Alfresco 3.2, (Model) -A Connector (controller/Dispatcher)the idea behind the connector is to provide more interfaces to other ECM produ</description>
      <pubDate>Sat, 17 Jul 2010 20:20:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-response-template/m-p/227618#M180748</guid>
      <dc:creator>simo2010</dc:creator>
      <dc:date>2010-07-17T20:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript response template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-response-template/m-p/227619#M180749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;But i don't know which FreeMarker Template i must use, because the connector act as middleware and therefore, and the webscripts by alfresco assume the the client provide a Browser .&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;You can use the DownloadContentServlet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/URL_Addressability#DownloadContentServlet" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/URL_Addressability#DownloadContentServlet&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;You can call this servlet using a webscript, and you can do this in Java or in Javascript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need a custom response, you can implement a custom Java-Backed Webscript using an AbstractWebScript implementation that allows you to manage request and response directly without using a FreeMarker template:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Java-backed_Web_Scripts_Samples#SimpleWebScript.java" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Java-backed_Web_Scripts_Samples#SimpleWebScript.java&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 08:27:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-response-template/m-p/227619#M180749</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2010-07-23T08:27:43Z</dc:date>
    </item>
  </channel>
</rss>

