This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Where to use wsgen? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Where to use wsgen?" Watch "Where to use wsgen?" New topic
Author

Where to use wsgen?

James Dekker
Ranch Hand

Joined: Dec 09, 2006
Posts: 215
Hello,

I am learning JAX-WS 2.0 and don't seem to know where (what directory - source or classes) to properly use wsgen against my WebService class...

Create a sample document literal based WebService:



Created the Publisher like this:



Using Eclipse Helios, I automatically build both of these files as *.classes underneath the corresponding classes directory.

So, from the filesystem, my project looks like this:



In which directory would I run wsgen?

When I tried it inside:

/code/jaxws_sample/src/wsgen -cp . hello.HelloWorld

Received:



It actually does show me the WSDL in a browser and also when I tried to issue the wsgen command from $MyProject/classes it actually did create a jaxws folder with the SayHelloResponse.class files but not the SayHelloResponse.java files?

Would appreciate it if someone could help me...

Thank you for taking the time to read this.
 
wood burning stoves
 
subject: Where to use wsgen?
 
Similar Threads
How to generate a WSDL for a Java based web service developed using JAXWS Annotations
java.io.IOException:CreateProcess error=5, Access is denied(While running build.xml in Ant editor)
How to generate WSDL file for any JAX-WS?
maven wsgen packaging
wscompile - how to generate wsdl from service endpoint