wsdl2java generated Service class has overloaded constructors with 
WebServiceFeature ... features parameter
-----------------------------------------------------------------------------------------------------------

                 Key: CXF-3268
                 URL: https://issues.apache.org/jira/browse/CXF-3268
             Project: CXF
          Issue Type: Bug
          Components: WS-* Components
    Affects Versions: 2.3.2
         Environment: Windows XP, Oracle jdk160_18
            Reporter: Gladwin
            Priority: Blocker


wsdl2java generated Service class has overloaded constructors with 
WebServiceFeature ... features parameter which is passed on to *super* 
constructor. However {{javax.xml.ws.Service}} does not have required overloaded 
constructor causing compilation errors.

Extract from wsdl2java output
{{
Loading FrontEnd jaxws ...
Loading DataBinding jaxb ...
wsdl2java -fe jaxws -db jaxb -wv 1.1 -verbose -client -autoNameResolution 
-mark-generated -sn MyXyzService  
-dC:\helios\my_workspace\proj-ws-gen\src\main\java -classdir 
C:\helios\my_workspace\proj-ws-gen\target\classes 
http://dev01.xyz.org:10003/Services/MyXyzService/V2?WSDL
wsdl2java - Apache CXF 2.3.2
}}


Extract from generated service class showing overloaded constructors causing 
compile error
{{

@Generated(value = "org.apache.cxf.tools.wsdlto.WSDLToJava", date = 
"2011-01-21T15:44:35.467-05:00", comments = "Apache CXF 2.3.2")
public class MyXyzService extends Service {

    ...
    
    @Generated(value = "org.apache.cxf.tools.wsdlto.WSDLToJava", date = 
"2011-01-21T15:44:35.467-05:00")
    public MyXyzService(WebServiceFeature ... features) {
        super(WSDL_LOCATION, SERVICE, features);
    }

    @Generated(value = "org.apache.cxf.tools.wsdlto.WSDLToJava", date = 
"2011-01-21T15:44:35.467-05:00")
    public MyXyzService(URL wsdlLocation, WebServiceFeature ... features) {
        super(wsdlLocation, SERVICE, features);
    }

    @Generated(value = "org.apache.cxf.tools.wsdlto.WSDLToJava", date = 
"2011-01-21T15:44:35.467-05:00")
    public MyXyzService(URL wsdlLocation, QName serviceName, WebServiceFeature 
... features) {
        super(wsdlLocation, serviceName, features);
    }

    ...

}

}}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to