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

wsdl2java produces code with compile error, trying to instantiate abstract class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.1
    • 2.1.6, 2.2.3
    • None
    • None
    • Linux, Eclipse 3.5RC1

    Description

      For wsdl that includes abstract complex types as:

      <complexType name="ReportJob" abstract="true">
      <sequence>
      <element name="clientEmails" minOccurs="0" maxOccurs="unbounded" type="xsd:string"/>
      <element name="crossClient" minOccurs="0" type="xsd:boolean"/>
      <element name="endDay" type="xsd:date"/>
      <element name="id" minOccurs="0" type="xsd:long"/>
      <element name="name" minOccurs="0" type="xsd:string"/>
      <element name="startDay" type="xsd:date"/>
      <element name="status" minOccurs="0" type="impl:ReportJobStatus"/>
      </sequence>
      </complexType>

      an abstract class will be generated and the sample client will include code that tries to instantiate this class which of course causes a complile error.

      The sample above is from the Google AdWords API and the full WSDL can be downloaded from:

      https://adwords.google.com/api/adwords/v13/ReportService?wsdl

      Chris Marshall

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            cbmamherst Christopher Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: