Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-3268

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Not A Problem
    • 2.3.2
    • Invalid
    • WS-* Components
    • None
    • Windows XP, Oracle jdk160_18

    • Novice

    Description

      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); }

      ...

      }

      }}

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            gburboz Gladwin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: