<?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 Execute a custom web script using a custom action in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/execute-a-custom-web-script-using-a-custom-action/m-p/267258#M220388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All. I am new to Alfresco and I am trying to execute a webscript from a custom action. Don't have much of an idea of how to do this. Therefore any kind of lead or help will be highly appreciated. Oh !!! by the way I am using alfresco 3.3.3&amp;nbsp; &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt; . Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Dec 2010 10:10:15 GMT</pubDate>
    <dc:creator>sankatha</dc:creator>
    <dc:date>2010-12-09T10:10:15Z</dc:date>
    <item>
      <title>Execute a custom web script using a custom action</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/execute-a-custom-web-script-using-a-custom-action/m-p/267258#M220388</link>
      <description>Hi All. I am new to Alfresco and I am trying to execute a webscript from a custom action. Don't have much of an idea of how to do this. Therefore any kind of lead or help will be highly appreciated. Oh !!! by the way I am using alfresco 3.3.3&amp;nbsp; &lt;IMG id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt; . Thanks</description>
      <pubDate>Thu, 09 Dec 2010 10:10:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/execute-a-custom-web-script-using-a-custom-action/m-p/267258#M220388</guid>
      <dc:creator>sankatha</dc:creator>
      <dc:date>2010-12-09T10:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a custom web script using a custom action</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/execute-a-custom-web-script-using-a-custom-action/m-p/267259#M220389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alfresco doesn't provide you any method to execute a webscript from a custom action. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can execute an action from a WebScript:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/3.4_JavaScript_API#Actions_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/3.4_JavaScript_API#Actions_API&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or you can execute a script from a custom action (ScriptAction):&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/3.4_JavaScript_API#ScriptAction_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/3.4_JavaScript_API#ScriptAction_API&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Probably you are confused because the same Javascript API of Alfresco is used for WebScripts and for Action Scripts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More info about the JavaScript API:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A WebScript is a REST-based action so this means that you can call this using directly the HTTP protocol. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;An action can be triggered from a WebScript call, from a Rule call or programmatically using the Javascript API, the Foundation API or&amp;nbsp; the SOAP API of Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need to execute a WebScript from an action, you need to implement by yourself the HTTP call, for example using HttpClient in Java. But I suggest you to study all the Alfresco architecture before starting to do this type of integrations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Usually you don't need to call a WebScript from an action, this means that you are loosing all the good choices that you can follow with Alfresco.&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>Wed, 02 Feb 2011 15:31:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/execute-a-custom-web-script-using-a-custom-action/m-p/267259#M220389</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2011-02-02T15:31:19Z</dc:date>
    </item>
  </channel>
</rss>

