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 "Michel.Drescher (JIRA)" <ji...@apache.org> on 2006/04/12 11:58:47 UTC

[jira] Commented: (AXIS2-557) Problems when generating stubs and skeletons from wsdl

    [ http://issues.apache.org/jira/browse/AXIS2-557?page=comments#action_12374167 ] 

Michel.Drescher commented on AXIS2-557:
---------------------------------------

Hi,

I can confirm the latter case.  The exception is *exactly* the same. The command I used was as this:
          ./WSDL2Java.sh -uri ./rbyteio-service.wsdl -s -p com.fujitsu.nextgrid.byteio -ss -sd -g -d xmlbeans -o ./

However, trying to generate the stub and skeleton separately, as follows:
          ./WSDL2Java.sh -uri ./rbyteio-service.wsdl -s -p com.fujitsu.nextgrid.byteio -ss -sd -d xmlbeans -o ./
and
          ./WSDL2Java.sh -uri ./rbyteio-service.wsdl -s -p com.fujitsu.nextgrid.byteio -d xmlbeans -o ./
the stub and skeleton are generated without any error message.

I guess this is related to issue AXIS2-531 (http://issues.apache.org/jira/browse/AXIS2-531) with messed up command line parameter handling.

Cheers,
Michel


> 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
>  Attachments: CreditService.tar.gz
>
> 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