[xwiki-devs] XWiki Restful client API jar
Hi Guys (and Fabio in particular), I've struggled a bit to have a REST client written with Httpclient and Jaxb. The micro sample on the wiki (http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI) was not correct (the parameter to JAXBContext.newInstance was wrong) and there was no example for some other calls than GET a wiki page. Finally when you write a sample using maven and jaxb you need the JAXB model and this makes your maven dependency need the whole xwiki core as you need xwiki-rest. We should separate xwiki-rest-jaxb model in a separate JAR that does not have other depencies than JAXB and provide a maven sample which is easy to customize. WDYT ? Ludovic -- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost
On Sat, Jan 16, 2010 at 21:17, Ludovic Dubost <[email protected]> wrote:
Hi Guys (and Fabio in particular),
I've struggled a bit to have a REST client written with Httpclient and Jaxb. The micro sample on the wiki (http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI) was not correct (the parameter to JAXBContext.newInstance was wrong) and there was no example for some other calls than GET a wiki page.
Finally when you write a sample using maven and jaxb you need the JAXB model and this makes your maven dependency need the whole xwiki core as you need xwiki-rest.
We should separate xwiki-rest-jaxb model in a separate JAR that does not have other depencies than JAXB and provide a maven sample which is easy to customize.
WDYT ?
Yes we already talked about that with Fabio, I guess he just did not had time to do it yet.
Ludovic
-- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
On Jan 16, 2010, at 9:17 PM, Ludovic Dubost wrote:
Hi Guys (and Fabio in particular),
I've struggled a bit to have a REST client written with Httpclient and Jaxb. The micro sample on the wiki (http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI) was not correct (the parameter to JAXBContext.newInstance was wrong) and there was no example for some other calls than GET a wiki page.
Finally when you write a sample using maven and jaxb you need the JAXB model and this makes your maven dependency need the whole xwiki core as you need xwiki-rest.
We should separate xwiki-rest-jaxb model in a separate JAR that does not have other depencies than JAXB and provide a maven sample which is easy to customize.
WDYT ?
Yes definitely. At the beginning JAXB was just used as a convenient way for serializing/deserializing XML on the server side (since Restlet-JAX-RS supports it out of the box). But indeed it is useful also on the client side if a client wants to use JAXB to handle XML representations, so a module that contains only the JAXB model is surely desirable. Is xwiki-rest-jaxb a good name for it? WDYT? -Fabio
participants (3)
-
Fabio Mancinelli -
Ludovic Dubost -
Thomas Mortagne