This is a difficult task. I donβt think that changing serializers will work, GWT-RPC serializers work with input data as a stream (basically the data sent from the server is actually in JSON format, but they can only be analyzed by GWT-RPC). You will need to create a completely new generator that will create code for parsing and serializing / deserializing objects. In this case, AutoBean can be very useful. In the end, you can transfer from serializing GWT-RPC to another protocol without actually changing the current code that uses GWT-RPC services.
The biggest problem is cross-domain messaging. Usually you use JSONP, but the problem is that JSONP basically only allows GET requests, if you need to send a lot of data to another server, you may not be able to put everything in separate requests. You can solve this problem by exchanging messages between domains (for example, you will open an iframe that will download special javascript communications from a remote server, and you will use this iframe as a proxy for your service via postMessage ), but this function is not supported in IE7
jusio source share