You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "David González (JIRA)" <ji...@apache.org> on 2014/04/10 10:00:37 UTC
[jira] [Created] (AXIS2-5643) [codegen] Problems with elements
formed by complexType and xsd:all
David González created AXIS2-5643:
-------------------------------------
Summary: [codegen] Problems with elements formed by complexType and xsd:all
Key: AXIS2-5643
URL: https://issues.apache.org/jira/browse/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: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 an 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
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org