File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes custom wsdl Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "custom wsdl" Watch "custom wsdl" New topic
Author

custom wsdl

Kevin Eddy
Ranch Hand

Joined: Feb 24, 2010
Posts: 74
I'm using netbeans 6.9.1 to build a jax-ws web service. I need to return a custom wsdl.
I've used the following annotation.
@WebService(wsdlLocation="WEB-INF/wsdl/intercept.wsdl")

However the autogenerated wsdl is still being returned when I query the web service for the wsdl in the browser like so:
http://localhost:8080/MyWebService/Intercept?wsdl

I checked the war file and it's indeed in the wsdl folder where it's supposed to be. It's also where it needs to be in tomcat.

Any ideas on why my custom wsdl isn't being returned?
Kevin Eddy
Ranch Hand

Joined: Feb 24, 2010
Posts: 74
Update to this problem. The custom wsdl is being returned correctly. I had altered the soap address and that change wasn't being reflected in the wsdl. However, other changes were showing up. This means that either tomcat or the jax-ws framework edits that part of the wsdl for you and supplies you with a soap addy. Is there a way to turn off wsdl publishing all together in jax-ws?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: custom wsdl
 
Similar Threads
Can't figure out how EJb 2.1 SLSB method is exposed as web-service
Web Services
Sun webservices tutorial
Generating a web service client
Webservices exposed on web