Dear all, I've sent a patch on the Jira for a first version of the new XMLRPC layer. (http://jira.xwiki.org/jira/browse/XWIKI-1560) This is a message just to let you know, since the Jira notification message might have been passed unnoticed. I don't have the rights to commit on the core so this patch should be reviewed and applied by some core committer. Following Sergiu's message about quality, I tried to keep a very high quality standard for the code (tests are provided as well). I'm getting back to XEclipse coding now since the XMLRPC API now has support for Object edition and other niceties (e.g., translations, attachments, revisions) Let me know if there are issues. Thanks. Cheers, Fabio
Hi Fabio, I'll commit it today. For the record : http://markmail.org/message/yx5q63i6h5jkoqo6 JV. On Wed, Apr 9, 2008 at 7:49 PM, Fabio Mancinelli <[email protected]> wrote:
Dear all,
I've sent a patch on the Jira for a first version of the new XMLRPC layer. (http://jira.xwiki.org/jira/browse/XWIKI-1560)
This is a message just to let you know, since the Jira notification message might have been passed unnoticed. I don't have the rights to commit on the core so this patch should be reviewed and applied by some core committer.
Following Sergiu's message about quality, I tried to keep a very high quality standard for the code (tests are provided as well).
I'm getting back to XEclipse coding now since the XMLRPC API now has support for Object edition and other niceties (e.g., translations, attachments, revisions)
Let me know if there are issues.
Thanks.
Cheers, Fabio _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Jean-Vincent Drean
Dear all, I'm trying the method client.execute("confluence1.getPages", params) with xmlrpc-client-3.1 for retrieve all the pages of one Space. The information in the Confluence documentation is that the getPages method returns a Vector. But, when I use the client.execute("confluence1.getPages", params) it returned an Object. I can't castings the Object to Vector. I tried with xmlrpc-client-3.0 too. The method getPages works very well with older versions (xmlrpc-client-2.*) Best regards, Fabrício.
Hi, On Mon, Apr 14, 2008 at 6:54 PM, Fabrício J. Barth < [email protected]> wrote:
Dear all,
I'm trying the method client.execute("confluence1.getPages", params) with xmlrpc-client-3.1 for retrieve all the pages of one Space.
The information in the Confluence documentation is that the getPages method returns a Vector. But, when I use the client.execute("confluence1.getPages", params) it returned an Object.
Did you try casting this into Object[] ? I can't remember clearly but i think i faced the same problem when developing initial versions of xeclipse. - Asiri
I can't castings the Object to Vector. I tried with xmlrpc-client-3.0 too.
The method getPages works very well with older versions (xmlrpc-client-2.*)
Best regards,
Fabrício.
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On 14 avr. 08, at 15:24, Fabrício J. Barth wrote:
Dear all,
I'm trying the method client.execute("confluence1.getPages", params) with xmlrpc-client-3.1 for retrieve all the pages of one Space.
The information in the Confluence documentation is that the getPages method returns a Vector. But, when I use the client.execute("confluence1.getPages", params) it returned an Object.
I can't castings the Object to Vector. I tried with xmlrpc-client-3.0 too.
XmlRpcClient.execute always returns an Object. It's your responsibility, then, to cast it to the correct type, depending on the API you are using. The current getPages implementation returns an Object[] so as Asiri correctly said, typecast it to (Object[]) and things will work fine. Maybe the confusion comes from the Confluence documentation where they mention the type "Vector". Actually XMLRPC doesn't support Vectors as a data type (http://ws.apache.org/xmlrpc/types.html ) and when you serialize arrays or Lists, they are always deserialized as Object[] (you can check it yourself by doing a simple System.out.format("%s\n", client.execute(...).getClass()); So whenever you read Vector, think of it as Object[] :) Cheers, Fabio
participants (4)
-
Asiri Rathnayake -
Fabio Mancinelli -
Fabrício J. Barth -
Jean-Vincent Drean