<?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: XML-RPC ? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/xml-rpc/m-p/123209#M86757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply: the Web scripts certainly look useful (in fact I'm &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;already aiming to use them for some other purposes).&amp;nbsp; However, I have &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;two queries:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1)&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Many of the Java interfaces are already exposed as Web Services,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;which means that most of the work necessary to expose them directly&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;as XML-RPC has already been done.&amp;nbsp; In fact this possibility is even &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mentioned in the Implementation notes on the Wiki:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Services_Implementation" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Services_Implementation&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It therefore seems as though it might be simpler to do this directly, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rather than effectively to implement XML-RPC higher up in the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JavaScript layer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation on the Wiki of Web Scripts suggests that they&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;receive their arguments from a POST request as a parsed&amp;nbsp; mapping&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;of name/value pairs;&amp;nbsp; however, a call to an XML-RPC method transmits &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it's payload as a single XML structure, so it seems that the script would &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;not be able to receive its arguments for subsequent processing with E4X.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this the case, or have I misundertood something here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this &lt;/SPAN&gt;&lt;EM&gt;is&lt;/EM&gt;&lt;SPAN&gt; the case, then we will have to intervene at the Java level&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;anyway (though I suppose this could be limited to putting the payload&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;somewhere that the script can see it).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this isn't the case and the script can see the payload, then I suppose a &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;viable approach would be to prototype an XML-RPC server toolkit in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ECMAScript using E4x, and then subsequently move the implementation &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to be supplied by a Web Script Runtime.&amp;nbsp; The XML-RPC spec is so short,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; that it couldn't&amp;nbsp; take too long (I hope!).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Feb 2008 23:42:16 GMT</pubDate>
    <dc:creator>sacco</dc:creator>
    <dc:date>2008-02-05T23:42:16Z</dc:date>
    <item>
      <title>XML-RPC ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xml-rpc/m-p/123207#M86755</link>
      <description>I need to integrate some bits of Alfresco functionality with a legacy application which can make (and reply to) XML-RPC calls.&amp;nbsp; Seems to me the easiest way would be to keep most of the logic in Alfresco and have it send back a preformatted chunk of page, possibly from either a template or a Web scri</description>
      <pubDate>Tue, 22 Jan 2008 18:51:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xml-rpc/m-p/123207#M86755</guid>
      <dc:creator>sacco</dc:creator>
      <dc:date>2008-01-22T18:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: XML-RPC ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xml-rpc/m-p/123208#M86756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is exactly the kind of thing web scripts (&lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts&lt;/A&gt;&lt;SPAN&gt;) were designed to do, so I wouldn't even look at other ways of doing this.&amp;nbsp; One tip would be to take a look at E4X (&lt;/SPAN&gt;&lt;A href="http://en.wikipedia.org/wiki/E4X" rel="nofollow noopener noreferrer"&gt;http://en.wikipedia.org/wiki/E4X&lt;/A&gt;&lt;SPAN&gt;) - it makes it significantly easier to work with XML from within Javascript (including Rhino, the Javascript interpreter embedded within Alfresco).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that to enable E4X within current builds of Alfresco (up to and including 2.1.x and possibly also the impending 2.2 release), you need to follow the instructions at &lt;/SPAN&gt;&lt;A href="http://issues.alfresco.com/browse/AR-1720" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/browse/AR-1720&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; A fix for this problem has been checked in, but hasn't surfaced in an official release yet.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 00:21:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xml-rpc/m-p/123208#M86756</guid>
      <dc:creator>pmonks</dc:creator>
      <dc:date>2008-01-23T00:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: XML-RPC ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/xml-rpc/m-p/123209#M86757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply: the Web scripts certainly look useful (in fact I'm &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;already aiming to use them for some other purposes).&amp;nbsp; However, I have &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;two queries:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1)&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Many of the Java interfaces are already exposed as Web Services,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;which means that most of the work necessary to expose them directly&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;as XML-RPC has already been done.&amp;nbsp; In fact this possibility is even &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mentioned in the Implementation notes on the Wiki:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Services_Implementation" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Services_Implementation&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It therefore seems as though it might be simpler to do this directly, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rather than effectively to implement XML-RPC higher up in the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JavaScript layer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation on the Wiki of Web Scripts suggests that they&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;receive their arguments from a POST request as a parsed&amp;nbsp; mapping&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;of name/value pairs;&amp;nbsp; however, a call to an XML-RPC method transmits &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it's payload as a single XML structure, so it seems that the script would &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;not be able to receive its arguments for subsequent processing with E4X.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this the case, or have I misundertood something here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this &lt;/SPAN&gt;&lt;EM&gt;is&lt;/EM&gt;&lt;SPAN&gt; the case, then we will have to intervene at the Java level&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;anyway (though I suppose this could be limited to putting the payload&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;somewhere that the script can see it).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this isn't the case and the script can see the payload, then I suppose a &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;viable approach would be to prototype an XML-RPC server toolkit in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ECMAScript using E4x, and then subsequently move the implementation &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to be supplied by a Web Script Runtime.&amp;nbsp; The XML-RPC spec is so short,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; that it couldn't&amp;nbsp; take too long (I hope!).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 23:42:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/xml-rpc/m-p/123209#M86757</guid>
      <dc:creator>sacco</dc:creator>
      <dc:date>2008-02-05T23:42:16Z</dc:date>
    </item>
  </channel>
</rss>

