You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by an...@wipro.com on 2008/04/16 16:04:25 UTC

FW: Woden[Fatal Error],0:0,WSDL501,Expected a "{http://www.w3.org/ns/wsdl}description" element, but found a "{http://schemas.xmlsoap.org/wsdl/}definitions" element instead.

 
Hi,
 
  I am using AXIS 2 .when I try to generate  java files from WSDL its
throwing error given below.
 Could any body help me ..   what could be the reason for this error.
 
Woden[Fatal Error],0:0,WSDL501,Expected a
"{http://www.w3.org/ns/wsdl}description" element, but found a
"{http://schemas.xmlsoap.org/wsdl/}definitions" element instead.

org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
WSDL
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(Lorg.apache.ax
is2.util.CommandLineOptionParser;)V(CodeGenerationEngine.java:153)
        at
org.apache.axis2.wsdl.WSDL2Code.main([Ljava.lang.String;)V(WSDL2Code.jav
a:35)
        at
org.apache.axis2.wsdl.WSDL2Java.main([Ljava.lang.String;)V(WSDL2Java.jav
a:24)
Caused by: WSDLException: faultCode=INVALID_WSDL: Fatal WSDL error:
0:0,WSDL501,Expected a "{http://www.w3.org/ns/wsdl}description" element,
but found a "{http://schemas.xmlsoap.org/wsdl/}definitions" element
instead.:
        at
org.apache.woden.internal.ErrorReporterImpl.reportError(Lorg.apache.wode
n.ErrorLocator;Ljava.lang.String;Ljava.lang.String;SLjava.lang.Exception
;)V(ErrorReporterImpl.java:229)
        at
org.apache.woden.internal.ErrorReporterImpl.reportError(Lorg.apache.wode
n.ErrorLocator;Ljava.lang.String;[Ljava.lang.Object;SLjava.lang.Exceptio
n;)V(ErrorReporterImpl.java:184)
        at
org.apache.woden.internal.ErrorReporterImpl.reportError(Lorg.apache.wode
n.ErrorLocator;Ljava.lang.String;[Ljava.lang.Object;S)V(ErrorReporterImp
l.java:169)
        at
org.apache.woden.internal.BaseWSDLReader.parseDescription(Ljava.lang.Str
ing;Lorg.apache.woden.XMLElement;Ljava.util.Map;)Lorg.apache.woden.wsdl2
0.xml.DescriptionElement;(BaseWSDLReader.java
:357)
        at
org.apache.woden.internal.DOMWSDLReader.readWSDL(Ljava.lang.String;Lorg.
w3c.dom.Element;)Lorg.apache.woden.wsdl20.Description;(DOMWSDLReader.jav
a:203)
        at
org.apache.woden.internal.DOMWSDLReader.readWSDL(Ljava.lang.String;Lorg.
w3c.dom.Document;)Lorg.apache.woden.wsdl20.Description;(DOMWSDLReader.ja
va:234)
        at
org.apache.woden.internal.DOMWSDLReader.readWSDL(Ljava.lang.String;Lorg.
xml.sax.InputSource;)Lorg.apache.woden.wsdl20.Description;(DOMWSDLReader
.java:247)
        at
org.apache.woden.internal.DOMWSDLReader.readWSDL(Ljava.lang.String;)Lorg
.apache.woden.wsdl20.Description;(DOMWSDLReader.java:122)
        at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.readInTheWSDLFil
e(Ljava.lang.String;)Lorg.apache.woden.wsdl20.Description;(WSDL20ToAxisS
erviceBuilder.java:1027)
        at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.<init>(Ljava.lan
g.String;Ljava.lang.String;Ljava.lang.String;)V(WSDL20ToAxisServiceBuild
er.java:143)
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(Lorg.apache.ax
is2.util.CommandLineOptionParser;)V(CodeGenerationEngine.java:97)
 
 
Thanks
Anan

Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com