The Java implementation in GWT of the RPC protocol in the packages com.google.gwt.user.server.rpc
and com.google.gwt.user.server.rpc.impl
unfortunately only covers deserialization of requests and serialization of responses. The real work is done in the classes ServerSerializationStreamReader
and ServerSerializationStreamWriter
(each appr. 750 lines of code).
To implement a client, you obviously need to serialze the request and deserialize the response, but since there's no documentation available for the protocol and AFAIK no Java client implementations available, you probably would have to reverse-engineer the (de)serialization classes and write your own code to do everything "the other way around".
You can find some high-level info about the protocol here