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
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to