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 How do I get Eclipse to create a wsdl file I can edit? 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 "How do I get Eclipse to create a wsdl file I can edit?" Watch "How do I get Eclipse to create a wsdl file I can edit?" New topic
Author

How do I get Eclipse to create a wsdl file I can edit?

mat buckland
Greenhorn

Joined: Sep 01, 2009
Posts: 24
Instead of the web service creating one automagically when it's deployed?

I would like the WAR file to contain a wsdl file I can view and edit. is that possible?

thanks
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Yes, of course it is possible. This procedure is not specific to Eclipse. I usually use an Ant script to do the following:
1. Use wsgen to generate the WSDL file.
2. Copy the generated WSDL into the WEB-INF/wsdl directory of the web service project.
3. Add the wsdlLocation attribute to the @WebService annotation in your endpoint implementation class. The value of the wsdlLocation is to be the name of the WSDL file.
Best wishes!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do I get Eclipse to create a wsdl file I can edit?
 
Similar Threads
general web service definition question
WSDL importing xsd containg DTD, prohibited?
How we can edit the parameters values in WSDL (created by bottom up approach) ?
Invoking webservice from portlet?
Web service to validate US states, city and zipcode