Practically I don’t think I am a position to block anything given that I am not very active at the moment, so I guess I would give a -0 vote. I still don’t really understand the need for XML over JSON, aside from a personal preference?
Going this direction will negatively impact the only known client (that I know of) for the importer [1], which I know is being used in production currently. What if the new xstream / xml based api could be developed alongside what’s already there? That would at least give people using the current api an out. And depending how the two evolve, deprecate one in the future.
···
On Fri, Feb 20, 2015 at 5:04 AM, Andrea Aime <andrea.aime@anonymised.com…> wrote:
Hi,
so to get practical, if I had to support XML, and made a pull request
that used xstream instead of hand conding, preserving the current json structure of course,
would it be accepted? If not, I’m open to suggestions… Should I start a new rest module
more aligned with the other GeoServer rest api?
In case it’s ok to modify the existing one, would I have to limit xstream usage to xml representation, or would it
make sense to also drop the current hand written json bindings?
From what I can tell xstream would produce the current json output with minimal customization, but I may
be wrong of course (please advise).
I may also need to provide full layer representation as opposed to the custom/limited
one currently supported by the json bindings, to allow userscontrol over the full layer configuration
(still discussing it, but the current minimum representation can really only address simple needs).
Cheers
Andrea
On Thu, Feb 19, 2015 at 4:39 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:
–
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.
On Thu, Feb 19, 2015 at 4:37 PM, Ian Schneider <ischneider@anonymised.com> wrote:
It is indeed a matter of preference. I live in a parallel universe where XML is more popular among server side developers apparently
Cheers
Andrea
–
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.
On Thu, Feb 19, 2015 at 8:21 AM, Andrea Aime <andrea.aime@anonymised.com> wrote:
The assertion of ‘software preferring to talk XML’ is quite subjective at best and an anthropomorphism at worse
When software does become self-aware, my guess is it’s ‘preference’ will be to communicate in binary
I believe when Justin mentioned ‘rest client developers’, he was referring to ‘API client’ - as in, the consumer of the service. Indeed, the existing importer API client is used server-side and is quite capable of being used via cron without even knowing that JSON is used as the protocol.
On Thu, Feb 19, 2015 at 4:17 PM, Justin Deoliveira <jdeolive@anonymised.com> wrote:
Server side software prefers to talk XML normally, and mass imports are not something to be restricted to clients, on
the contrary, coupled with a cron-like engine they are the very source of life of any system doing continous data
publishing (typical in metoc).
Yeah, I guess so. Although if the api is to support both xml and json making everything use xstream becomes more attractive despite all of the above. Our initial rationale was that supporting json would be enough as I don’t see a lot of rest client developers that ask for xml when json is available. If anything it’s always the other way around.
Long story short, to support XML one has to build a DOM or something similar and then perform a similar manual parse and encoding, right?