<?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 making a web service call which returns an html document in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/making-a-web-service-call-which-returns-an-html-document/m-p/296990#M250120</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good Day,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have a system with a number of components. Alfresco is our back end content management system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What we need to do is in Alfresco run a script against an xml file. The script would make a web service call to another application passing the xml file and the response would contain an html formatted file which we would then display to the client (the html file will not be saved, just streamed to the console). We don't want to save the html in Alfresco as it could become unsynched with the xml..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are running an older version of alfresco (2.9 community) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What would be the best way to do this? action executer or webscript or javascript? or something else?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bruce&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Aug 2014 18:37:28 GMT</pubDate>
    <dc:creator>cdn_alfresco_de</dc:creator>
    <dc:date>2014-08-25T18:37:28Z</dc:date>
    <item>
      <title>making a web service call which returns an html document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/making-a-web-service-call-which-returns-an-html-document/m-p/296990#M250120</link>
      <description>Good Day,We have a system with a number of components. Alfresco is our back end content management system.What we need to do is in Alfresco run a script against an xml file. The script would make a web service call to another application passing the xml file and the response would contain an html fo</description>
      <pubDate>Mon, 25 Aug 2014 18:37:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/making-a-web-service-call-which-returns-an-html-document/m-p/296990#M250120</guid>
      <dc:creator>cdn_alfresco_de</dc:creator>
      <dc:date>2014-08-25T18:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: making a web service call which returns an html document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/making-a-web-service-call-which-returns-an-html-document/m-p/296991#M250121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When will the script be called ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Where(alfresco explorer or your own UI?) and when the html file will be displayed ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 02:39:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/making-a-web-service-call-which-returns-an-html-document/m-p/296991#M250121</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-08-26T02:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: making a web service call which returns an html document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/making-a-web-service-call-which-returns-an-html-document/m-p/296992#M250122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The script will be called by a link or button that the user will click. It is from the alfresco ui (explorer).&amp;nbsp; We were thinking an action executer tied to a link on the ui.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My team was discussion the possiblities further this morning and refined our requirements.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have another system (a java web application) It's purpose is to process a change to a natrual health product application. Basically the output from that tool is a zip file. The zip contains an xml file with the changes as well as a number of attachments and supporting documents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This zip gets loaded into Alfresco. We want to be able to display the xml in a readable format that is consistent with how our other system displays it. The other system uses custom stylesheets and scripts (WET Toolkit) that we don't want to have to host in the Alfresco codebase also.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What we'd like is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. An action executer which makes a service call to our other Java web application passing the xml file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. The other web application while take the xml, load it into the domain model, and generate a readable html file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. The other web application will pass back a url to the html file hosted in the other web app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. The action executer will take the url, and then open up the url in a new webpage (the url is hosted in the other web application)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We think all this is possible, but are not sure if/how the Action Executer can open up a new webpage with the url link. Thinking it should be fairly easy to do. We've done some searching but haven't found anything yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you think this is feasable? Do you know how to easily to step 4?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I mentioned, the script will be called by a button or link the user will click. We are running an older version of alfresco (2.9 community) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bruce&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 17:04:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/making-a-web-service-call-which-returns-an-html-document/m-p/296992#M250122</guid>
      <dc:creator>cdn_alfresco_de</dc:creator>
      <dc:date>2014-08-27T17:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: making a web service call which returns an html document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/making-a-web-service-call-which-returns-an-html-document/m-p/296993#M250123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes ,you can redirect a request to the specified URL&amp;nbsp; in the JSF backing bean,like follwoing&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;ExternalContext context = FacesContext.getCurrentInstance().getExternalContext();&lt;BR /&gt;context.redirect(url);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2014 01:44:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/making-a-web-service-call-which-returns-an-html-document/m-p/296993#M250123</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-08-29T01:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: making a web service call which returns an html document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/making-a-web-service-call-which-returns-an-html-document/m-p/296994#M250124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning, I have the same problem, we have our java aplication in the same tomcat that Alfresco and we want to call it trough one button that a person will click. I don't know if that is possible with action executer or wit web scrip, we are working with alfresco 3.4.d &amp;nbsp;and our java application should be to call when the person will click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 10:51:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/making-a-web-service-call-which-returns-an-html-document/m-p/296994#M250124</guid>
      <dc:creator>kara</dc:creator>
      <dc:date>2017-06-13T10:51:00Z</dc:date>
    </item>
  </channel>
</rss>

