[ http://issues.apache.org/jira/browse/AXIS2-557?page=comments#action_12377833 ]
Ajith Harshana Ranabahu commented on AXIS2-557: ----------------------------------------------- Hi, Yes - the fix was committed and is available at the SVN head. If you care to wait for a few days more you'll have the luxury of having a brandnew release to play with :) > Problems when generating stubs and skeletons from wsdl > ------------------------------------------------------ > > Key: AXIS2-557 > URL: http://issues.apache.org/jira/browse/AXIS2-557 > Project: Apache Axis 2.0 (Axis2) > Type: Bug > Components: wsdl > Versions: 0.95 > Environment: Linux, jdk 1.4.2-b28 > Reporter: Marko Huttunen > Assignee: Ajith Harshana Ranabahu > Attachments: CreditService.tar.gz, diff.txt > > Hi! > I am trying to generate stubs and skeletons from a wsdl, but I always end up > with exceptions. With default databinding option the code generation ends up > with this exception: > Exception in thread "main" > org.apache.axis2.wsdl.codegen.CodeGenerationException: > java.lang.RuntimeException: > org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad > Enumeration value 'restriction' > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:146) > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) > Caused by: java.lang.RuntimeException: > org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad > Enumeration value 'restriction' > at > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:162) > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:101) > ... 2 more > Caused by: org.apache.ws.commons.schema.constants.Enum$EnumValueException: > Bad Enumeration value 'restriction' > at org.apache.ws.commons.schema.constants.Enum.setValue(Enum.java:50) > at org.apache.ws.commons.schema.constants.Enum.<init>(Enum.java:28) > at > org.apache.ws.commons.schema.XmlSchemaDerivationMethod.<init>(XmlSchemaDerivationMethod.java:38) > at > org.apache.ws.commons.schema.SchemaBuilder.handleComplexType(SchemaBuilder.java:616) > at > org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:107) > at > org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:57) > at > org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:238) > at > org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:200) > at > org.apache.ws.commons.schema.SchemaBuilder.getXmlSchemaFromLocation(SchemaBuilder.java:1897) > at > org.apache.ws.commons.schema.SchemaBuilder.getXmlSchemaFromLocation(SchemaBuilder.java:1882) > at > org.apache.ws.commons.schema.SchemaBuilder.handleInclude(SchemaBuilder.java:1732) > at > org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:119) > at > org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:233) > at > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:96) > ... 3 more > If xmlbeans databinding is used, the result is the same, but with different > exception: > Exception in thread "main" > org.apache.axis2.wsdl.codegen.CodeGenerationException: > org.apache.axis2.wsdl.codegen.CodeGenerationException: > extension.noProperDatabinding > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:146) > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) > Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: > extension.noProperDatabinding > at > org.apache.axis2.wsdl.codegen.extension.DefaultDatabindingExtension.engage(DefaultDatabindingExtension.java:35) > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:101) > ... 2 more > XMLBeans 2.1.0 can handle both schemas that are included in the wsdl, > therefore they seem to be ok. The wsdl is also ok according to XMLSpy 2006. > I can provide you with wsdl and schemas, if you like. > Br, > Marko -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira