Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5643

[codegen] Problems with elements formed by complexType and xsd:all

    XMLWordPrintableJSON

Details

    Description

      I am trying to generate an element in my .xsd like this:

      <xsd:element name="element">
      <xsd:complexType>
      <xsd:all minOccurs="0">
      <xsd:element name="fileName" type="xsd:string"/>
      <xsd:element name="tag" type="xsd:string"/>
      </xsd:all>
      </xsd:complexType>
      </xsd:element>

      This element it is used like wsdl:input in a wsdl:operation, but when I go to compile: mvn org.apache.axis2:axis2-wsdl2code-maven-plugin:1.6.2:wsdl2code

      Returns the following error:
      [ERROR] Failed to execute goal org.apache.axis2:axis2-wsdl2code-maven-plugin:1.6.2:wsdl2code (default-cli) on project vodkatv-wsdl: org.apache.axis2.wsdl.codegen.CodeGenerationException: Unsupported Schema format for unwrapping! found all but expected sequence

      I have a look at the source code and I found this:

      //we do not know how to deal with other particles
      //such as xs:all or xs:choice. Usually occurs when
      //passed with the user built WSDL where the style
      //is document.
      ...
      ...
      } else if (schemaParticle instanceof XmlSchemaAll) {
      throw new CodeGenerationException(
      CodegenMessages.getMessage("extension.unsupportedSchemaFormat",
      "all", "sequence"));

      Is this a bug or am I doing something wrong?

      Thanks for your help in advance,
      David

      Attachments

        Activity

          People

            Unassigned Unassigned
            d_int David González
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified