aspose file tools*
The moose likes Web Services and the fly likes NetBeans JAX-WS WSDL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "NetBeans JAX-WS WSDL" Watch "NetBeans JAX-WS WSDL" New topic
Author

NetBeans JAX-WS WSDL

chris richmond
Greenhorn

Joined: May 16, 2008
Posts: 1
Hello,

I am using Netbeans 6.1 and created a web application that has some generated clients to an outside webservice that are referenced in my JSP page. I deploy my .war to a tomcat server and everything runs until I hit a page that references those client proxies, then it says it can't find the wsdl file.

I look inside the expaned folder from my war on tomcat and I find :

/warfolder/WEB-INF/wsdl/client/users/users.wsdl but I notice that the error says it cant find the path that it was on my development machine:

Failed to access the WSDL at: file:/C:/Netbeans61/Projects/<project>/resources/wsdl/jobs.wsdl. It failed with: C:\Netbeans61\Projects\<project>\resources\wsdl\jobs.wsdl (The system cannot find the path specified).

So the question is, how do I tell my references to my web service client clases where to find the wsdl?

And also, does it re-read the wsdl on every runtime reference to the client classes and rebuild the classes on each call to it? If so, isnt' there a way in Netbeans/JAX-WS to compile the client classes once and deploy them so it does't re-read the wsdl after deployment?

Thanks,
Chris
NarendraBabu Bandaru
Greenhorn

Joined: May 17, 2008
Posts: 20
You can add the webservice annotation in your client implementation file specifying the wsdl locaiton.
@javax.jws.WebService --- for this wsdllocation attribute is there, specify the location details.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NetBeans JAX-WS WSDL
 
Similar Threads
jax-ws wsimport does not work
custom wsdl
Web Service, IDE Server Run Time, Deployment?
NetBeans Web Service client attempt
Modify build xml to replace words in an xml or properties file based on a text file