Relative Path for WSDL in CXF Webservice Client -


in application use many webservices. wsdl not change, have integrated wsdl files in project. if use wsdl2java tool cxf, wsdl locations absolute path hardcoded.

now question is, how change "wsdlocation" parameter in @webserviceclient annotation relative path?

here example:

@webserviceclient(name = "time",                    wsdllocation = "file:/c:/users/dominik/documents/netbeansprojects/webservices/src/wsdl/time.wsdl" ) /*i want path relative */ public class time extends service { 

i figured out how correctly today. put files resources folder , can use wsdllocation refer them relatively this:

<wsdllocation>classpath:wsdl/myservice.wsdl</wsdllocation> 

see answer similar question here: https://stackoverflow.com/a/9875701/1190144


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -