<?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 how to call another webscript inside webscript in java controller if both are in same repository in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-call-another-webscript-inside-webscript-in-java/m-p/300422#M253552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;how to call another webscript inside one webscript in java controller if both are in same repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//hellowebscript&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; public void execute(WebScriptRequest request, WebScriptResponse response)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; //need to call another webscript&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jun 2016 01:18:47 GMT</pubDate>
    <dc:creator>chaituu</dc:creator>
    <dc:date>2016-06-10T01:18:47Z</dc:date>
    <item>
      <title>how to call another webscript inside webscript in java controller if both are in same repository</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-call-another-webscript-inside-webscript-in-java/m-p/300422#M253552</link>
      <description>how to call another webscript inside one webscript in java controller if both are in same repository.//hellowebscript public void execute(WebScriptRequest request, WebScriptResponse response){ //need to call another webscript}</description>
      <pubDate>Fri, 10 Jun 2016 01:18:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-call-another-webscript-inside-webscript-in-java/m-p/300422#M253552</guid>
      <dc:creator>chaituu</dc:creator>
      <dc:date>2016-06-10T01:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to call another webscript inside webscript in java controller if both are in same repository</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-call-another-webscript-inside-webscript-in-java/m-p/300423#M253553</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 remember asking a similar question a number of year ago.&amp;nbsp; So the webscript framework wasn't designed to allow calling webscripts from within webscripts easily, but the good news with Java-backed ones, because it's Java you can just make a HTTP call to call the webscript you want. It won't be efficient - you'll have to make a call out and block until you get the response back (HTTP is asynchronous) and you'll have to parse the response you get back before you can use the info you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you really want to do it though, you can just make the http call like you would in any Java application, e.g. Apache HTTPClient etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 20:42:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-call-another-webscript-inside-webscript-in-java/m-p/300423#M253553</guid>
      <dc:creator>steven_okennedy</dc:creator>
      <dc:date>2016-06-10T20:42:52Z</dc:date>
    </item>
  </channel>
</rss>

