Questions tagged [resty-gwt]

RestyGWT is a GWT generator for REST services and JSON encoded data transfer objects.

RestyGWT is a GWT generator for REST services and JSON encoded data transfer objects.

Its features are:

  • Generates Async Restful JSON based service proxies
  • Java Object to JSON encoding/decoding
  • Easy to use REST API
65 questions
1
vote
2 answers

Can GWTP Rest Dispatch be used with REST Spring server backend?

I've started to use GWTP framework. And I've noticed that it has his own implementation of Rest comunication. I've used to use GWT with RestyGWT And Spring server. Now I wonder- can I use GWTP Rest Dispatch with Spring server? Or should I stick…
masterdany88
  • 5,041
  • 11
  • 58
  • 132
1
vote
1 answer

Restygwt + spring mvc

I would like to try to use RestyGWT + SpringMVC, but the internet is practically no sane information on these technologies in the bundle, please give simple examples or links to good examples. Thanks a lot.
Exslims
  • 11
  • 1
1
vote
0 answers

Rest Client with RestyGWT and custom headers

I would try to create an API Rest client for a code that I have in a GWT project. In order to arrive to the server and obtain a response I need to attach some custom headers in my request. I saw, there were some bugs some years ago when write…
DavidR.
  • 93
  • 6
1
vote
0 answers

Could not parse response: org.fusesource.restygwt.client.ResponseFormatException: Response was NOT a valid JSON document

Could not parse response: org.fusesource.restygwt.client.ResponseFormatException: Response was NOT a valid JSON document I am getting the following errors in my code . I have added Defaults.setDateFormat(null); in onModuleload…
sachin
  • 11
  • 2
1
vote
2 answers

RestyGWT content argument must be a class

I'm trying to have a server-client communication by using restygwt. Therefore I'm having an service interface (client) and a controller (server). @Path("/user") public interface UserAdminRestService extends RestService { @GET …
vicR
  • 789
  • 4
  • 23
  • 52
1
vote
1 answer

How can I create synchronous calls to rest via javascript using GWT?

I am making REST calls to a web service hosted on a different server form my GWT client javascript whose response needs to be captured and rendered on UI . I do this via resty-gwt . But I am unable to capture that response at the instance when the…
Chhavi Gangwal
  • 1,166
  • 9
  • 13
1
vote
2 answers

GXT with RestyGWT

I've searched as much as I could but did not find any answers/examples for my question. I'm completely new to Web UI development but have a decade and a half of experience in Java and other languages. I seem to be completely lost in the sea of…
siki
  • 9,077
  • 3
  • 27
  • 36
1
vote
2 answers

CORS issue with RestyGWT client with remote service on JBoss AS 7

I am using RestyGWT to communicate with remote service on JBoss AS7 but getting following error: OPTIONS http://localhost:8080/remoteService No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8888'…
Mustansar Saeed
  • 2,730
  • 2
  • 22
  • 46
1
vote
2 answers

RestyGWT & GWT integration: Cannot GET Resource

OBJECTIVE: I'm using GWT and trying to call an existing Twitter REST Service using RestyGWT client PROBLEM: I am not receiving a response to my GET request to "https://api.twitter.com/1.1/statuses/mentions_timeline.json" THINGS I'VE TRIED: I've…
user2449227
1
vote
1 answer

RestyGWT Polymorphic Encode/Decode issues when using an interface instead of an abstract class

According to RestyGWT documentation one must use an abstract super class for this to work, for instance, given: @JsonSubTypes(@Type(value=PersonImpl.class, name="PersonImpl")) @JsonTypeInfo(use=Id.NAME, include=As.PROPERTY, property="@class") public…
Chepech
  • 5,258
  • 4
  • 47
  • 70
1
vote
1 answer

RestyGWT JSON mapping with private fieldVisibility

I am currently prototyping replacing the GWT-RPC based backend of our application to a REST based API using RestyGWT on the frontend and Spring MVC on the backend. My issue occurs during the Java <-> JSON type conversions that both frameworks…
Josh
  • 838
  • 3
  • 11
  • 22
1
vote
1 answer

How to serialze a map in RestyGWT

I want to send a Map to a server using RestyGWT. However, when I serialize a map in the request it adds extra quote escapes around the string keys. So, map.put("hello",123); service.sendRequest(map,callback); results in JSON being…
Tom Carchrae
  • 6,398
  • 2
  • 37
  • 36
0
votes
0 answers

Why isn't the GWT Query Param of type Date serializing with the default date format when the timezone is set to UTC-XX?

In GWT Query param of type Date does not get serialized using the default (unix time) date format when timezone is set to any of (UTC-XX) timezones. E.g. Query param: Thu+May+19+10%3A47%3A09+GMT-100+2022 default format used : EEE MMM dd HH:mm:ss…
Nithya
  • 1
  • 2
0
votes
1 answer

restygwt - get original server error on client site

I have an application build on GWT + RestyGWT with Spring I'm trying to make some user friendly exception handling on client site. I have some method on server side that throws an exception: @PostMapping(...) @Transactional(...) public long…
0
votes
0 answers

Posting users credentials in jersey & restygwt

I want to make a post request with user credentials. My server side is ready and I have tested it using postman. Something just like this: http:/localhost/8080/appname/oauth/token/grant_type=password&username=bill&password=secret. I want to send…