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