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
0
votes
1 answer

Convert GWT RPC to RestyGWT

Our legacy application uses GWT RPC, we would like to use RestyGWT, can someone provide me an example of converting GWT RPC to RestyGWT?
enfany
  • 875
  • 2
  • 15
  • 33
0
votes
1 answer

How can to send request from RestyGWT part to another server project?

I have restyGWT+GXT project, that send request to server project (Spring Boot), so, my restyGWT+GXT part: buiid.gradle: ... compile 'org.fusesource.restygwt:restygwt:2.0.3' compile 'javax.ws.rs:jsr311-api:1.1.1' my rest service in restyGWT+GXT…
Paushchyk Julia
  • 516
  • 3
  • 8
  • 24
0
votes
1 answer

RestyGWT mapping

Im trying to play with RestyGWT. So I try to create simple API and deploy it. My API is available at http://127.0.0.1:8888/api/hellos. But client tries to connect to http://127.0.0.1:8888/TestApp/api/hellos Can you please advice what I do wrong…
Java Dude
  • 454
  • 6
  • 24
0
votes
1 answer

Updgrade from resty-gwt 1.3 to 1.4

I have recently upgrade from 1.3 to 1.4 However there have been a number of snags. Most I have been able to resolve, however this one I have no idea where to even start. This is a crude ezample of the POJO public class Pizza { public String …
James
  • 1
  • 1
0
votes
2 answers

RestyGWT + Jersey Error 500 when sending a not null or empty List

Say I have a Jersey Resource somewhat similar to this: @Path("/test") public class TestResource{ @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public Response test(List json){ …
Alan Dávalos
  • 2,568
  • 11
  • 19
0
votes
1 answer

Can I get servlet logging from gwt test case

I have been using GwtTestCase for a while and am trying to test a simple RestyGwt client api. I have added the servlet to my gwt.xml class but am not able to get any logging from the servlet. It appears that the servlet is not being created. Here…
Chris Hinshaw
  • 6,967
  • 2
  • 39
  • 65
0
votes
2 answers

"Abstract classes must be annotated with JsonTypeInfo" compiling DTO structure

I have a quite simple DTO structure composed of an interface, an abstract class implementing it and a hierarchy of classes under the abstract class. The interface: public interface InterfaceDTO {} The abstract class: import…
Taka
  • 659
  • 2
  • 10
  • 17
0
votes
1 answer

Spring-MVC is missing @Class-information when posting dto from RestyGwt

Given a Spring MVC controller: @RequestMapping(method = RequestMethod.POST consumes = RestApiConstants.JSON, produces = RestApiConstants.JSON) @ResponseBody public CustomerDto post(@RequestBody final CustomerDto dto) { // save it } When posting a…
0
votes
1 answer

Restygwt: malformed URI sequence

I've REST-based service on resygwt with API like this: @Path("/search") @GET List search(@QueryParam("login") String loginMask) throws RemoteException; And I receive "malformed URI sequence" for this…
0
votes
1 answer

GWT XHR wrong URL in Safari HTTP status 0

I have a web application with LDAP authentication developed using GWT and restygwt on the client side running on a Glassfish server. Everything seems to be working correctly in Chrome and Firefox. However in Safari. I receive a HTTP Status 0 before…
sk8er3810
  • 41
  • 4
0
votes
1 answer

Encoding A Java Object (POJO) into a JSON String in GWT

Objective I'd like to use JSON-RPC to send this on the clientside: {"jsonrpc":"2.0","method":"RegisterValues","params":[["Planets","Stars"]],"id":2} My Attempt Using Resty-GWT: public interface testService extends RestService { …
fiz
  • 906
  • 3
  • 14
  • 38
0
votes
1 answer

Is There an Easier Way to Post this Message with RestyGWT?

The Problem Currently I'm replacing GSON with Resty-GWT to make my JSON-RPC calls due to various annoyances with GSON. It works exactly how I want it to but I can't figure out how to send my messages other than in a String: String names_ =…
fiz
  • 906
  • 3
  • 14
  • 38
0
votes
1 answer

What Does the Equivalent Client Side RestyGWT Look Like Following This Simple GSON Example?

The Problem Due to several problems encountered with GSON (GWT JSON-RPC), I'd like to switch to Resty-GWT. The following example showcases my old setup, then below is my attempt at transferring. The Data This is the JSON data sent from the proxy I…
fiz
  • 906
  • 3
  • 14
  • 38
0
votes
1 answer

RestyGWT Must be annotated with JsonTypeInfo

I'm trying to get data via my Restservice. Therefor I'm Having my spring controller and my rest service. @Path("/user") public interface UserAdminRestService extends RestService { public static class Util { private static…
vicR
  • 789
  • 4
  • 23
  • 52
0
votes
1 answer

GWT + ReastEasy - Cookie not returning to server

I'm working on GWT application which has REST backend. Also I'm using RESTEasy and RestyGWT library. Now I've created permanent cookie on server side and it's been returned to client(I can see it's stored in browser cookie list) but when I make new…