You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by John Kaputin <KA...@uk.ibm.com> on 2008/01/29 23:30:43 UTC

Re: Getting INVALID_WSDL with WSDL generated from .NET web service

Ron,
it looks like you have a WSDL 1.1 document.  Woden is a WSDL 2.0 parser.

> Expected a "{http://www.w3.org/ns/wsdl}description" element, but
> found a "{http://schemas.xmlsoap.org/wsdl/}definitions" element instead.

The WSDL 1.1 namespace is http://schemas.xmlsoap.org/wsdl/ and the root 
document element is <definitions>.
The WSDL 2.0 namespace is http://www.w3.org/ns/wsdl and the root document 
element is <description>.

You need to use WSDL4J to parse WSDL 1.1 documents 
(sourceforge.net/projects/wsdl4j)

regards,
John Kaputin


"Ron Johnson" <rj...@blazemail.com> wrote on 29/01/2008 21:54:11:

> Hello - I took what I thought was a fairly simple WSDL file that was
> generated from a .NET web service and an not able to use it with 
> Woden. As far as I know it is valid, I even ran a validator (soapUI)
> on it to double check. Here's the error I'm getting - any idea 
> what's going on here?
> 
> 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.
> 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(ErrorReporterImpl.java:229)
>     at org.apache.woden.internal.ErrorReporterImpl.
> reportError(ErrorReporterImpl.java:184)
>     at org.apache.woden.internal.ErrorReporterImpl.
> reportError(ErrorReporterImpl.java:169)
>     at org.apache.woden.internal.BaseWSDLReader.
> parseDescription(BaseWSDLReader.java:357)
>     at org.apache.woden.internal.DOMWSDLReader.
> readWSDL(DOMWSDLReader.java:203)
>     at org.apache.woden.internal.DOMWSDLReader.
> readWSDL(DOMWSDLReader.java:234)
>     at org.apache.woden.internal.DOMWSDLReader.
> readWSDL(DOMWSDLReader.java:247)
>     at org.apache.woden.internal.DOMWSDLReader.
> readWSDL(DOMWSDLReader.java:122)
>     at test.Main.main(Main.java:19)
> 
> Fight the Power! Blazemail





Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU







---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org