Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #28974
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2014-07-06 09:48 -0700 |
| References | <27ea72bb-99ad-4a0f-bca4-c3cbafdf032a@googlegroups.com> <53b973e1$0$291$14726298@news.sunsite.dk> <a8ae7ef9-01ee-41e9-9416-b78a226d3572@googlegroups.com> <53b979bf$0$299$14726298@news.sunsite.dk> |
| Message-ID | <0220c8d4-ecad-4877-b593-95eacb3c890b@googlegroups.com> (permalink) |
| Subject | Re: Java API for RESTful Services |
| From | Jason Petersson <jason.petersson@gmail.com> |
The response payload is even simpler than XML, JSON, CSV. Basically just returns a 0 or 1. With the HTTP Client there is sometime some additional whitespace parsing required. I believe the the minimal effort required to parse the response, the better. https://authrequest.com/auth/auth?method=authenticate&organization=a&username=a&password=a 1 if failed and 0 if successful Sincerely, Jason Petersson http://jnpetersson.com On Sunday, July 6, 2014 9:30:56 AM UTC-7, Arne Vajhøj wrote: > On 7/6/2014 12:26 PM, jason.petersson@gmail.com wrote: > > > On Sunday, July 6, 2014 9:05:52 AM UTC-7, Arne Vajh�j wrote: > > >> I believe JAX-RS 2 comes with a client API. > > >> > > >> Commonly used implementations like Jersey and RESTEasy also comes > > >> with client API's. > > >> > > >> But I think a lot of developers just use plain Apache HttpClient > > >> and whatever JSON or XML library they need to handle the data. > > >> > > >> REST services are not like WS-* SOAP services. > > > > > Excellent. I will look into Jersey and RESTEasy as well. I have been > > > using Apache HttpClient which works well I am just curious if there > > > are additional API's used that provide additional features specific > > > for REST. > > > > There are so little you need to do RESTful style. HTTP, 4 methods, > > headers, URL and body. > > > > The data handling depends a lot on whether you use XML or JSON or CSV or > > whatever format. > > > > Arne
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Java API for RESTful Services jason.petersson@gmail.com - 2014-07-06 09:01 -0700
Re: Java API for RESTful Services Arne Vajhøj <arne@vajhoej.dk> - 2014-07-06 12:05 -0400
Re: Java API for RESTful Services jason.petersson@gmail.com - 2014-07-06 09:26 -0700
Re: Java API for RESTful Services Arne Vajhøj <arne@vajhoej.dk> - 2014-07-06 12:30 -0400
Re: Java API for RESTful Services Jason Petersson <jason.petersson@gmail.com> - 2014-07-06 09:48 -0700
Re: Java API for RESTful Services Arne Vajhøj <arne@vajhoej.dk> - 2014-07-06 19:12 -0400
Re: Java API for RESTful Services Daniele Futtorovic <da.futt.news@laposte.net> - 2014-07-06 22:35 +0200
Re: Java API for RESTful Services Joerg Meier <joergmmeier@arcor.de> - 2014-07-08 00:14 +0200
csiph-web