[Geoserver-users] REST Configuration API

Well... xstream is nice and simple. You do not need to define a schema or antyhing to serialize and deserialize objects. We also had a bunch of a xstream based stuff around for serializing the exact same objects, so it made sense to reuse it.

Part of my hesitation of publishing a schema at this point is that this api is very new, and will undoubtedly change. But I realize this makes it hard for the client since there is no great way to figure out what a legal representation is.

Anyways, if you do reverse engineer a schema and would be willing to share it I would be happy to review it, and incorporate it into the api.

-Justin

Patel, Ronak Avinash (US SSA) wrote:

In the meantime, I'll have to improvise and make up the schema on my own
based on the data I see in the examples on your site.

Why did your team decide to use XStream rather than the popular JAXB or
XMLBeans Java <-> XML binding APIs?

-----Original Message-----
From: Justin Deoliveira [mailto:jdeolive@anonymised.com] Sent: Tuesday, March 31, 2009 5:43 AM
To: Patel, Ronak Avinash (US SSA)
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] REST Configuration API

Patel, Ronak Avinash (US SSA) wrote:

Hi,

I am exploring the new REST Configuration API and I was curious about
the XML datatype.

Do you provide an XSD schema that lists the type of data structures

that

would be returned from geoserver?

Unfortunately no, not yet. The library we use (XStream) does not provide

any facility for generating an XML schema, nor should it really. So one thing I was was thinking of was coming up with one manually, but something i have not got around with.

This would work out well with a JAXB or XMLBeans.

Another thing I would like to do is publish a java based client api. Actually there is a summer of code project for this. That way client code would really have to worry about what the exact XML representation looks like.

Thanks!!

Ronak Patel

------------------------------------------------------------------------
------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.