Or use Errai JAX-RS https://docs.jboss.org/author/display/ERRAI/Errai+JAX-RS

On Tuesday, July 8, 2014 7:12:06 AM UTC-7, Thomas Broyer wrote:
>
>
>
> On Tuesday, July 8, 2014 10:11:11 AM UTC+2, Santhosh Thadaka wrote:
>>
>> I have my backend with EJB and REST webservice and I want to consume the 
>> REST service with GWT as a front end can any one suggest with which is the 
>> best approach 
>>
>> RPC
>> RequestFactory
>> RequestBuilder
>>
>> and I am not allowed to use any external api's. Please let me know what 
>> all should be taken care.
>>
>
> GWT-RPC is an RPC protocol and API, and RequestFactory is a protocol too.
>
> If you want to consume "REST" services, you'll have to use either 
> RequestBuilder or XMLHttpRequest (the former wraps the latter).
> If the data you exchange is JSON, then you can either use JsonUtils and 
> overlay types (unfortunately only works for parsing for now –stringify is 
> being added as I write–, but you can defer to JSONObject for 
> serialization), JSONParser and friends, or AutoBeans.
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to