Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!storethat.news.telefonica.de!telefonica.de!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Fredrik Jonson Newsgroups: comp.lang.java.programmer Subject: Re: Mini-rant on Java REST (JAX-RS), JSON, XML, JAXB etc... Date: 2 Mar 2013 14:46:35 GMT Lines: 35 Message-ID: References: <513197f8$0$80104$742ec2ed@news.sonic.net> X-Trace: individual.net ZRxJZm7DoYG4nDETKsdANw+nEymw071v6wTkOdR91bPOLKIXrI0KbJTsgRzsknKSc= Cancel-Lock: sha1:BZQ4k/Hn9qmllPtLrC8dPIO9TbA= User-Agent: slrn/pre1.0.0-18 (Linux) Xref: csiph.com comp.lang.java.programmer:22681 Kevin McMurtrie wrote: > SOAP is one of the worst widely adopted protocols ever. It makes LDAP > seem sensible. Just say "no." Funny, this makes me think that each generation of programmers is doomed to reinvent the wheel. Only, it isn't the wheel, it is RMI, CORBA, SOAP, or some other remote service invocation protocol that's widely used. A few years ago I had the impression that most parties had actually just begun to become proficient in designing reasonable and usable SOAP services. There was light at the end of the tunnel. Then all of a sudden it seemed as everyone decided JSON over REST is the new black. And we were back where we started again. Now I find my colleagues and business relations discussing how to approach schema validation for the JSON models published by our REST services - as if that is a novel concept in computer science. And while that goes on in one corner, elsewhere new REST-services are published every day, without a thought given to versioning, maintenance, or if the current database ER-model really is suitable as raw types in the REST service API too. Yes, I'm well aware of the arguments why JSON is better than XML, and I agree that XML has its deficiencies. And I'm not saying that SOAP was a silver bullet either, far from it. I'm only asking, do we really have to start from scratch every time? A few years from now someone else is going to come by and state that "REST/JSON is the worst widely adopted protocol ever, just say no. Let's all use Protocol Buffers and MQTT instead". -- Fredrik Jonson