• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

NetBeans JAX-WS WSDL

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Destiny's powerful hand has made the bed of my future. And this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic