You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by robert <ro...@gliesian.com> on 2011/01/24 19:18:44 UTC
Invalid generated constructors when converting WSDL to Java
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?
Re: Invalid generated constructors when converting WSDL to Java
Posted by Daniel Kulp <dk...@apache.org>.
See my comments in:
https://issues.apache.org/jira/browse/CXF-3268
Dan
On Monday 24 January 2011 1:18:44 pm robert wrote:
> 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/moviefunct
> ions.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?
--
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog