Yes, as long as the service is on the same server as the app and
abides by the same origion policy.
http://en.wikipedia.org/wiki/Same_origin_policy
There is no difference, it is just a GWT-RPC call. You just target
"/myapp/myservlet", and the RPC will hit the same server where the
HTML/JS page was loaded from. It doesn't matter if the site is hosted
on http, https, port 8080, etc.
Rob
some caveats you may want to be aware of.
If you want your RPCs to work via https, then your host page must be
loaded via https as well (Same Origin Policy)
However, when you use the regular GWT bootstrap code via https, you
lose the ability to cache the GWT code. So, your clients will have to
transfer the GWT *.cache.html file(s) each time they visit the page.
You can use the cross site bootstrap to load the GWT code via HTTP
while still using HTTPS for the host page and RPCs ... this will give
you the benefit of HTTPS for your RPCs while still caching the GWT code.
just replace your <script ... src="...nocache.js"> with <script ...
src="http://[serverurl]/...-xs.nocache.js">
Then of course you need to be sure that your server doesn't redirect
the requests for the *-xs.nocache.js or *.cache.js or cache.png (image
bundle) files to https.
If you do actually set things up this way, then you will have to be
sure that you build up your RPC endpoints using
GWT.getHostPageBaseURL() rather than GWT.getModuleBaseURL();
-jason