Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #28974

Re: Java API for RESTful Services

X-Received by 10.182.250.229 with SMTP id zf5mr11620707obc.4.1404665282035; Sun, 06 Jul 2014 09:48:02 -0700 (PDT)
X-Received by 10.50.20.168 with SMTP id o8mr599711ige.12.1404665281053; Sun, 06 Jul 2014 09:48:01 -0700 (PDT)
Path csiph.com!usenet.pasdenom.info!news.etla.org!news.litech.org!news.glorb.com!uq10no2122421igb.0!news-out.google.com!bp9ni2744igb.0!nntp.google.com!uq10no2122411igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.programmer
Date Sun, 6 Jul 2014 09:48:00 -0700 (PDT)
In-Reply-To <53b979bf$0$299$14726298@news.sunsite.dk>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=50.184.193.84; posting-account=meSACAoAAAAQ4BofYyFKYgJss1VMY5fX
NNTP-Posting-Host 50.184.193.84
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>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <0220c8d4-ecad-4877-b593-95eacb3c890b@googlegroups.com> (permalink)
Subject Re: Java API for RESTful Services
From Jason Petersson <jason.petersson@gmail.com>
Injection-Date Sun, 06 Jul 2014 16:48:01 +0000
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Xref csiph.com comp.lang.java.programmer:28974

Show key headers only | View raw


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


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