Re: GWT Client for App Engine Endpoints

2017-01-13 Thread Matthew Rubenstein
Thanks for the clarification. JsInterop looks like a good "last resort" if I must write (and maintain) JS source in addition to Java. The limited set of Java classes that GWT can compile to JS makes JsInterop necessary and important (and better than JSNI). The compilation error I get looks

Re: GWT Client for App Engine Endpoints

2017-01-13 Thread Paul Mazzuca
I am not quite sure, but what might be the issue is that you are trying to add jar's that are not compatible with GWT. GWT implements a subset of the Java 8 API. That's why GWT modules are usually written specifically for GWT, because they cannot leverage all of the Java API. Furthermore, GWT

Re: GWT Client for App Engine Endpoints

2017-01-12 Thread Matthew Rubenstein
The hitch seems to be getting the GWT compiler to find the API Java code generated by the annotation processor. That generated API code is not under the project/html/src/ tree (html=GWT), but rather under the project/backend/build/generated-source/endpoints/java/ tree (eg.

Re: GWT Client for App Engine Endpoints

2017-01-11 Thread Matthew Rubenstein
Well, I am making an async HTTP request using the GWT RequestBuilder API, as illustrated in the code snippet in my previous message . RestyGWT might offer better management of requests than my basic RequestBuilder

Re: GWT Client for App Engine Endpoints

2017-01-11 Thread Paul Mazzuca
GAE Endpoints makes available REST EndPoints for your various clients. If GWT is being used in your client, then you need to make an HTTP request from that client in order to communicate with GAE Endpoints. So the question is how do you create an HTTP async request from a GWT client? You

Re: GWT Client for App Engine Endpoints

2017-01-11 Thread Matthew Rubenstein
I currently have the project's GWT module send data to the backend API // Build API request URL. backendMethodURLStr= "https://api-backend.appspot.com*/* _ah/api/endpointsApi/v1/sayHi endpointRequestURLStr = backendMethodURLStr + "/" + URL.encode(dataStr); // Ping Endpoint with value REST

Re: GWT Client for App Engine Endpoints

2017-01-11 Thread Michael Joyner (NewsRx)
I don't know how much it will help, but RestyGWT could be used for the GWT client to access JSON data via a predefined and share-able json rest interface definition. Then you could use the builts, (a bit manaully), of libGDX net to to http/json calls to the end point. The end point I would

GWT Client for App Engine Endpoints

2017-01-11 Thread Matthew Rubenstein
Hello. I'm trying to add a Google Endpoints client to a LibGDX project. Adding one to the GWT module is causing me a lot of problems. Is there a demo GWT project that includes an Endpoints client, deployable to Google App Engine? A project I can open in Android Studio, so either a Gradle