• Post Reply Bookmark Topic Watch Topic
  • New Topic

wsdl2java using GLUE  RSS feed

Wei Hsu
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am trying to use wsdl2java to generate some client side stub. I was able to get AXIS's wsdl2java to generate the stub with no problem. However, when i tried to use GLUE's wsdl2java, it gave me the following error <shown below> when parsing the xsd.
I don't understand why it's saying that the <restriction> must be followed by <annotation>, <anyAttribute> or <attribute>. The structure in question has the below structure:
<complexType name="A">
<restriction base="se:StringCT">
<enumeration value="ab"/>
<enumeration value="cd"/>

<complexType name="StringCT">
<extension base="string">
<attributeGroup ref="se:baseAttrGroup"/>
<attributeGroup name="baseAttrGroup"/>

What can possibly be causing the error? Would appreciate any suggestions or tips. Thanks!
----- error -----
electric.xml.io.schema.SchemaException: <restriction> in type http://test.com/A must currently be followed by <annotation>, <anyAttribute> or <attribute>
at electric.xml.io.complex.SimpleContent.readSchemaRestriction(Unknown Source)
at electric.xml.io.complex.SimpleContent.readSchema(Unknown Source)
at electric.xml.io.complex.SimpleContent.<init>(Unknown Source)
at electric.xml.io.complex.ComplexType.readSchema(Unknown Source)
at electric.xml.io.complex.ComplexType.<init>(Unknown Source)
at electric.xml.io.complex.ComplexTypeFactory.newType(Unknown Source)
at electric.xml.io.TypeFactories.newType(Unknown Source)
at electric.xml.io.Namespaces.getTypeWithSchema(Unknown Source)
at electric.xml.io.schema.Schema.parseComplexTypes(Unknown Source)
at electric.xml.io.schema.Schema.parseSchema(Unknown Source)
at electric.xml.io.schema.Schema.parseImports(Unknown Source)
at electric.xml.io.schema.Schema.parseSchema(Unknown Source)
at electric.xml.io.schema.Schema.<init>(Unknown Source)
at electric.wsdl.WSDL.parseSchema(Unknown Source)
at electric.wsdl.WSDL.parseWSDL(Unknown Source)
at electric.wsdl.WSDL.<init>(Unknown Source)
at electric.wsdl.tools.WSDL2Java.wsdl2java(Unknown Source)
at electric.wsdl.tools.WSDL2Java.main(Unknown Source)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!