views:

166

answers:

2

Hi!

I'm developing an app using GWT Eclipse plug-in. (I'm also using GWT Designer but I don't think the problem is here). Previously when I wanted a java application to communicate with a web service I created, I produced the "skeleton" classes from the WSDL url using Sun's wsimport tool. Then I would add the classes generated to a class folder in my Eclipse project. All worked well.

However this doesn't seem to be working with GWT. I have these:

VideoTutorialServiceService service = new VideoTutorialServiceService();
VideoTutorialService port = service.getVideoTutorialServicePort();

and I have VideoTutorialServiceService and VideoTutorialService underlined in red, the error saying videotutorialservice.VideoTutorialServiceService can not be found in source packages. Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly.

.... I googled about it but I got confused. I'm a beginnier in GWT. How can I resolve this please?

Thanks and regards, Krt_Malta

A: 

Check the capitalization of the VideoTutorialServiceService enclosing class. If you copied/pasted it verbatim then it's looking for videotutorialservice.VideoTutorialServiceService instead of VideoTutorialService.VideoTutorialServiceService

James
They are correct. I'm sure of that.
Krt_Malta
A: 

Are VideoTutorialServiceService etc. wsimport generated files? If yes, then they won't work with GWT.

GWT doesn't support all java classes. It just supports a sub-set that makes sense in the javascript world. Remember that GWT is essentially a java -> javascript compiler, so you can't take any java code and expect it to run properly in javascript.

sri
I see. Do you have any idea how I can access the web service please? Thanks and regards, Krt_Malta
Krt_Malta