This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
These are a beginner's dumb questions. More about eclipse than Glassfish, perhaps.
I'm using eclipse 3.3 with Glassfish on Mac OS X. I'm attempting to build a toy "Hello World" level web service example, both the service and a client to connect to it.
Deploying the web service to Glassfish, from within eclipse, was easy: "Run As -> Run on server". Bingo; code compiled, web service deployed and running.
The client side is what I'm struggling to do from within eclipse, and maybe there isn't a way to do that? The examples I've encountered online for this all seem to, in a shell, manually invoke the wsimport script to generate the client-side stub classes from the web service's WSDL file. Is there a way to perform this step from within eclipse? Or is it not integrated into the JavaEE perspective, and you really must drop outside eclipse to do it?
And if that's true, I can't quite figure out how to generate the stubs into a place in the client project in eclipse, in a way that eclipse can see and use those classes in the client code. I know I need to modify the client project's build path. Is there a canonical way people do this -- I mean, do they generate the stub classes in <client-project>/build/classes? (I can't seem to make eclipse be happy about a path beneath there...) Surely you don't generate the stub classes into the web service project?? Or do I plop them into the client project in (say) <client-project>/wsimports (i.e., a new directory not below the "build" directory that eclipse makes)?
Told you they were dumb questions. :-) Thanks in advance, --SR
<target name="help"> <echo message="server: Builds and deploy the service endpoint WAR"/> <echo message="client: Builds the client"/> <echo message="run: Runs the client"/> <echo message="server-j2se: Builds and deploy the Endpoint API based service"/> <echo message="server-j2se-stop: Stops Endpoint API based service"/>