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

WSDL2Java should not fail on valid schema

    XMLWordPrintableJSON

Details

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

    Description

      When Axis WSDL2Java encounters schema constructs/types from the 2001 schema
      spec which it does not understand, it fails (typically crash & burn). Tom is
      already working on recognizing all the defined schema data types and giving
      a "type not supported" error for types we don't deal with, which is more
      comprehensible than "type referenced but not defined".

      For schema constructs we don't understand, like xsd:group, xsd:list,
      xsd:choice, we may want to map the XML to a SOAPElement instead. This would
      allow the tool to function on valid schemas, giving the user a workable, if
      not easy-to-use, data binding.

      So:

      <xsd:complexType name="Foo">
      <xsd:choice>...</xsd:choice>
      </xsd:complexType>
      <xsd:complexType name="Bean">
      <xsd:element name="fooField" type="Foo"/>
      </xsd:complexType>

      would generate a "Bean" like this:

      class Bean {
      public SOAPElement fooField;
      ...
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            gdaniels Glen Daniels
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: