Hi all...

I'm using axis-1_2_1.jar (from WSS4J lib) and I'm having problems when I
try to generate the classes from a WSDL. I have to import some schemas and
the problem is that axis can't find the referenced element in the schema

part of Schema:

<element name="SignatureProperties" type="ds:SignaturePropertiesType"/>
<complexType name="SignaturePropertiesType">
  <sequence>
    <element ref="ds:SignatureProperty" maxOccurs="unbounded"/>
  </sequence>
  <attribute name="Id" type="ID" use="optional"/>
</complexType>

<element name="SignatureProperty" type="ds:SignaturePropertyType"/>
<complexType name="SignaturePropertyType" mixed="true">
    <choice maxOccurs="unbounded">
      <any namespace="##other" processContents="lax"/>
      <!-- (1,1) elements from (1,unbounded) namespaces -->
    </choice>
    <attribute name="Target" type="anyURI" use="required"/>
    <attribute name="Id" type="ID" use="optional"/>
</complexType>


The error message:

[java] java.io.IOException: Type
{http://www.w3.org/2000/09/xmldsig#}SignatureProperty is referenced but
not defined.
     [java]     at
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:663)
     [java]     at
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543)
     [java]     at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:516)
     [java]     at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:493)
     [java]     at
org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
     [java]     at java.lang.Thread.run(Thread.java:595)


The element is defined but axis can't find it!!! If I use the
axis-1_2_RC2.jar it works  :(   but I need the latest version.


I tryed to change the line
<element ref="ds:SignatureProperty" maxOccurs="unbounded"/>
for something like
<element name="SignatureProperty" type="ds:SignaturePropertyType"/>
and the error goes to another ref:"??" element


I was wondering if its a bug of axis, because the schemas are from
XML-Dsig and XML-Enc and seem to be correct.

I was looking for a solution different from change all my schemas that
uses a reference.

Thanks in advance

Any sugestions are welcome...
==============================================
    Quia natura mutari non potest idcirco
 verae amicitiae sempiternae sunt - (Horace)
             RAFAEL J. DEITOS
    Automação - UFSC - Florianópolis - SC
       http://www.das.ufsc.br/~deitos
==============================================

Reply via email to