When I run the chapter 8 example from the Apache CXF Web Services
Development book using the build script, all is well..
However, when I run it directly, I get three extra constructors that
bear errors in regards to the Service superclass:
Command:
$ wsdl2java -client
http://www.ignyte.com/webservices/ignyte.whatsshowing.webservice/moviefunctions.asmx?wsdl
Extra constructors that are produced from the above command (versus
the build script):
public MovieInformation(WebServiceFeature ... features) {
super(WSDL_LOCATION, SERVICE, features);
}
public MovieInformation(URL wsdlLocation, WebServiceFeature ...
features) {
super(wsdlLocation, SERVICE, features);
}
public MovieInformation(URL wsdlLocation, QName serviceName,
WebServiceFeature ... features) {
super(wsdlLocation, serviceName, features);
}
Error example:
constructor Service in class java.xml.ws.Service cannot be applied to
given types required java.net.URL, javax.xml.namespace.QName
found: java.net.URL, javax.xml.namespace.QName,
javax.xml.ws.WebServiceFeature[]
Can anyone advise what is going on here?