axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David González (JIRA) <>
Subject [jira] [Created] (AXIS2-5643) [codegen] Problems with elements formed by complexType and xsd:all
Date Thu, 10 Apr 2014 08:00:37 GMT
David González created AXIS2-5643:

             Summary: [codegen] Problems with elements formed by complexType and xsd:all
                 Key: AXIS2-5643
             Project: Axis2
          Issue Type: Bug
          Components: codegen
    Affects Versions: 1.6.2
            Reporter: David González
             Fix For: 1.6.2

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

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

This element it is used like wsdl:input in an wsdl:operation, but when I go to compile: mvn

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(
   "all", "sequence"));

Is this a bug or am I doing something wrong?

Thanks for your help in advance,

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message