Re: Consuming REST services
Re: Consuming REST services
- Subject: Re: Consuming REST services
- From: Henrique Prange <email@hidden>
- Date: Wed, 18 May 2011 10:39:48 -0300
Pascal,
Just to summarize the simplicity of Jersey client. Here is a sample code of how to do a GET on the resource identified by 10.
Client client = Client.create();
WebResource resource = client.resource( "http://localhost/my-service" );
MyResource response = resource.path("resource").path(10).type(MediaType.APPLICATION_JSON).get(MyResource.class);
Cheers,
Henrique
On 18/05/2011, at 10:20, Henrique Prange wrote:
> Hi Pascal,
>
> We have been using Jersey [1] to produce and consume REST services. We found Jersey the most concise and simple REST implementation. It also offers a good set of tools to test production and consumption of REST services, which is essential in our development process.
>
> [1]http://jersey.java.net/
>
> Cheers,
>
> Henrique
>
> On 18/05/2011, at 10:05, Pascal Robert wrote:
>
>> Good morning,
>>
>> I see from the 2011 surveys that a good part of the community is consuming REST services. I was wondering what are you using to consume those? Right now, I'm playing with ERXRestClient and JBoss' RestEasy to consume REST services, but I'm curious to see what other people use. Just plain Jakarta HTTPClient with a JSON or XML parser?
>>
>>
>> --
>> Pascal Robert
>> email@hidden
>>
>> WOWODC 2011 : July 1-2-3, Montreal. wowodc.com
>>
>> AIM/iChat : MacTICanada
>> LinkedIn : http://www.linkedin.com/in/macti
>> Twitter : pascal_robert
>>
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden