In theory what you're describing is possible with just the RemoteService 
interface, the corresponding <hashname>.gwt.rpc policy file, and each of 
the classes referenced by that policy file - the 
com.google.gwt.user.client.rpc.impl.AbstractSerializationStream type 
hierarchy should have the pieces you would need to achieve this.

In practice though, there is some JSNI required, or at least using the 
embedded rhino library to deal with some of the specifics, and there are no 
built in utilities to make this easy to do. Can you elaborate on what 
you're trying to achieve with this - there might be a simpler way to just 
help populate some simple requests and read some responses, without either 
a server or client process running.

There are also a few non-Java implementations out there that could help 
(again, for simple payloads).

I forked GWT-RPC some years ago and rewrote it without reflection or 
generators - one of my other main goals was to allow arbitrary other 
clients, and to make the wire format fully symmetrical. It has endpoints 
for android/jvm clients, websocket clients, and webworker clients. It 
cannot do 100% of what the original GWT-RPC can do, but it is in use in 
production and has been for some years, targeting this specific subset of 
functionality. I'm not sure if changing your RPC implementation is 
possible, but if it is, consider https://github.com/Vertispan/gwt-rpc/. 
There are also closed-source c++ and c# clients - obviously I cannot share 
that code, but I mention it to make the point that this fork is intended to 
be much friendlier to alternative implementations.

On Tuesday, October 8, 2024 at 10:17:31 AM UTC-5 [email protected] wrote:

> I read very much document, very much tutorial, but I cannot do it.
>
> My task is: serialize request and deserialize response body without 
> starting a server, without starting UI. I act as client.
>
> All I have is some .jar file
>
> [image: d.png]
>
> Please, I would appreciate any help.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/8d67f5e1-1702-4f64-b6be-46f30a321b51n%40googlegroups.com.

Reply via email to