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

Arrays with Aegis+JAX-WS produce incorrect WSDL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.2
    • 2.0.3
    • Aegis Databinding
    • None

    Description

      If a parameter of an operation is declared as

      void foo (String x, Name[] y)

      then the resulting WSDL will look like:

      <xsd:complexType name="addNameBatch">
      <xsd:sequence>
      <xsd:element minOccurs="0" name="indexid" type="xsd:string"/>
      <xsd:element maxOccurs="unbounded" name="names" type="ns1:ArrayOfName"/>
      </xsd:sequence>
      </xsd:complexType>

      Presto: a two-dimensional array.

      Using List<Name> instead yields the correct schema.

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            bmargulies Benson Margulies
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: