Does anyone worked with GWT connecting to Web Services in the server side?

5 views
Skip to first unread message

nacho

unread,
Nov 6, 2009, 1:43:16 PM11/6/09
to Google Web Toolkit
Hi, i'm trying to develop an application with GWT in wich one i have
to get the data from WS that are hosted on a different server.

I was googling about that but there not so much examples.

Does anyone did that?

Sorry my poor english :P

MarcoGT

unread,
Nov 7, 2009, 4:22:56 AM11/7/09
to Google Web Toolkit
What do you mean with "different server"?
I do something like that; I use RequestBuilder classs (I do not use
RPC and ASyncCallBack) to make request to server; date are sent and
received in XML format.

Bye
Marco

nacho

unread,
Nov 7, 2009, 10:13:45 AM11/7/09
to Google Web Toolkit
The problem is the following.

I have an api wich connects to the differents WS and gave me all the
DAOs. But when i try to use the API in the server side, in a
ServiceImpl class i get the followoing error:

javax.xml.ws.Service is a restricted class. Please see the Google App
Engine developer's guide for more details.

This problem i think is because this class is not in the Appengine
Whitelist (http://code.google.com/appengine/docs/java/
jrewhitelist.html) but it dosnt have to be a problem if i want to
deploy the application in a Tomcat Server for example.

Buuuuuuut because of the above error, my problem is that i can't make
the GWT compiler to get run and compile the js files.

How could i do?

Shawn Brown

unread,
Nov 7, 2009, 6:40:15 PM11/7/09
to google-we...@googlegroups.com

Sripathi Krishnan

unread,
Nov 7, 2009, 9:25:54 PM11/7/09
to google-we...@googlegroups.com
it dosnt have to be a problem if i want to
deploy the application in a Tomcat Server for example.

You can do that if you disable Google App Engine. If you are using the GWT Eclipse plugin, there is a setting to disable App Engine.

--Sri


2009/11/7 nacho <vela.i...@gmail.com>

doopa

unread,
Nov 9, 2009, 11:32:29 AM11/9/09
to Google Web Toolkit
Hi,

I use tomcat to connect to a variety of webservices. Essentially it
works as a client to them. I don't deploy to Google AppEngine though.
But it does work if you control the server that you host the tomcat
instance on.

On Nov 8, 2:25 am, Sripathi Krishnan <sripathi.krish...@gmail.com>
wrote:
> > it dosnt have to be a problem if i want to
> > deploy the application in a Tomcat Server for example.
>
> You can do that if you disable Google App Engine. If you are using the GWT
> Eclipse plugin, there is a setting to disable App Engine.
>
> --Sri
>
> 2009/11/7 nacho <vela.igna...@gmail.com>
>
>
>
> > The problem is the following.
>
> > I have an api wich connects to the differents WS and gave me all the
> > DAOs. But when i try to use the API in the server side, in a
> > ServiceImpl class i get the followoing error:
>
> > javax.xml.ws.Service is a restricted class. Please see the Google  App
> > Engine developer's guide for more details.
>
> > This problem i think is because this class is not in the Appengine
> > Whitelist (http://code.google.com/appengine/docs/java/
> > jrewhitelist.html<http://code.google.com/appengine/docs/java/%0Ajrewhitelist.html>)

jaga

unread,
Nov 9, 2009, 12:05:27 PM11/9/09
to Google Web Toolkit
I use Axis 2 to communicate with web services on the server. The
ServiceImpl and RPC gives the results to and from the GWT client.

James
Reply all
Reply to author
Forward
0 new messages