axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Ward <Brian.W...@BristolWest.com>
Subject RE: type referenced but not defined in generated WSDL
Date Wed, 06 Nov 2002 21:21:40 GMT
I think your error is related to the "empty" type of your nestedException
element.  I think that the {http://www.w3.org/2001/XMLSchema} string is just
the default namespace with no class following it.
 
Anyone?
 
--- bhw

-----Original Message-----
From: Volkmann, Mark [mailto:Mark.Volkmann@AGEDWARDS.com]
Sent: Wednesday, November 06, 2002 3:58 PM
To: 'axis-user@xml.apache.org'
Subject: type referenced but not defined in generated WSDL


I'm using Java2WSDL and WSDL2Java.  The generated WSDL contains the
following.
 
 <wsdl:types>
  <schema targetNamespace=" http://schemas.xmlsoap.org/soap/encoding/
<http://schemas.xmlsoap.org/soap/encoding/> " xmlns="
http://www.w3.org/2001/XMLSchema <http://www.w3.org/2001/XMLSchema> ">
   <import namespace=" http://schemas.xmlsoap.org/soap/encoding/"/
<http://schemas.xmlsoap.org/soap/encoding/> >
   <element name="Array" nillable="true" type="soapenc:Array"/>
  </schema>
  <schema targetNamespace=" http://api.secref.agedwards.com
<http://api.secref.agedwards.com> " xmlns=" http://www.w3.org/2001/XMLSchema
<http://www.w3.org/2001/XMLSchema> ">
   <import namespace=" http://schemas.xmlsoap.org/soap/encoding/"/
<http://schemas.xmlsoap.org/soap/encoding/> >
   <complexType name="SecurityInquiryException">
    <complexContent>
     <extension base="tns3:WrappingException">
      <sequence>
       <element name="localizedMessage" nillable="true" type="xsd:string"/>
      </sequence>
     </extension>
    </complexContent>
   </complexType>
   <element name="SecurityInquiryException" nillable="true"
type="tns2:SecurityInquiryException"/>
  </schema>
  <schema targetNamespace=" http://util.core.agedwards.com
<http://util.core.agedwards.com> " xmlns=" http://www.w3.org/2001/XMLSchema
<http://www.w3.org/2001/XMLSchema> ">
   <import namespace=" http://schemas.xmlsoap.org/soap/encoding/"/
<http://schemas.xmlsoap.org/soap/encoding/> >
   <complexType name="WrappingException">
    <sequence>
     <element name="message" nillable="true" type="xsd:string"/>
     <element name="nestedException" nillable="true" type=""/>
    </sequence>
   </complexType>
  </schema>
 </wsdl:types>
 
WSDL2Java gives me the following error.
 
java.io.IOException: Type {http://www.w3.org/2001/XMLSchema} is referenced
but not defined.
 
The string "XMLSchema" doesn't appear anywhere else in the generated WSDL.
 
Why does it think this is a type?  Am I doing something wrong or is this a
bug?
 
 
 


****************************************************************************
*******
WARNING: All e-mail sent to and from this address will be received or
otherwise recorded by the A.G. Edwards corporate e-mail system and is
subject to archival, monitoring or review by, and/or disclosure to,
someone other than the recipient.
****************************************************************************
********



Mime
View raw message