Uploaded image for project: 'Axis'
  1. Axis
  2. AXIS-600

wsdl2java: <xsd:choice maxOccurs="unbounded"> does not result in array

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • None
    • None
    • WSDL processing
    • None
    • Operating System: Other
      Platform: Other
    • 15789

    Description

      .NET defines a repeating dataset row as a sub-element of a xsd:choice element.
      The xsd:choice element is defined as 'unbounded' in the wsdl definition while
      the element has no restricting facets.

      wsdl2java creates a member variable defining a single object instead of an
      array.

      For example:
      private org.tempuri.www.Customers customers;
      instead of:
      private org.tempuri.www.Customers[] customers;

      see the attached wsdl files for a sample .NET dataset definition.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--CustomerDataSet.wsdl
          2 kB
          Chris Haddad
        2. ASF.LICENSE.NOT.GRANTED--Service1.wsdl
          4 kB
          Chris Haddad
        3. fix-axis-600.patch
          1 kB
          Dominic Battre

        Activity

          People

            Unassigned Unassigned
            chris.haddad@cobia.net Chris Haddad
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: