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 Ron Johnson <rj...@blazemail.com> on 2008/02/01 04:23:02 UTC

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

That explains it - thanks much for the response!

I may try the converter here: http://www.w3.org/2006/02/WSDLConvert.html

to convert to 2.0 and see if that works.



--- KAPUTIN@uk.ibm.com wrote:

From: John Kaputin <KA...@uk.ibm.com>
To: woden-dev@ws.apache.org
Cc: "Ron Johnson" <rj...@blazemail.com>
Subject: Re: Getting INVALID_WSDL with WSDL generated from .NET web service
Date: Tue, 29 Jan 2008 22:30:43 +0000

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





_____________________________________________________________
Fight the Power! Blazemail

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


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

Posted by John Kaputin <KA...@uk.ibm.com>.
Tom,
you could also try the converter tool in Woden. If you're using the 
Milestone 7b (M7b) release, it's in the woden-1.0-incubating-M7b.jar file. 
If you're using a recent SNAPSHOT jar from the maven repo, it's in the DOM 
impl jar file. 

The following example will take a WSDL 1.1 file called MyWSDL.wsdl and 
produce a WSDL 2.0 file call MyWSDL.wsdl2:

java -cp 
.;woden-impl-dom-1.0-20080129.193548-1.jar;wsdl4j.jar;xercesImpl.jar;xml-apis.jar;XmlSchema-1.3.1.jar 
org.apache.woden.tool.converter.Convert -wsdl MyWSDL.wsdl

This converter tool might not be completely up to date with WSDL 2.0 as it 
was created quite a while ago and we haven't yet integrated the conversion 
function into Woden.  It doesn't convert extensions, for example. But it 
might suit your needs for now.

regards,
John Kaputin


"Ron Johnson" <rj...@blazemail.com> wrote on 01/02/2008 03:23:02:

> That explains it - thanks much for the response!
> 
> I may try the converter here: http://www.w3.org/2006/02/WSDLConvert.html
> 
> to convert to 2.0 and see if that works.
> 
> 
> 
> --- KAPUTIN@uk.ibm.com wrote:
> 
> From: John Kaputin <KA...@uk.ibm.com>
> To: woden-dev@ws.apache.org
> Cc: "Ron Johnson" <rj...@blazemail.com>
> Subject: Re: Getting INVALID_WSDL with WSDL generated from .NET web 
service
> Date: Tue, 29 Jan 2008 22:30:43 +0000
> 
> 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
> 
> 
> 
> 
> 
> _____________________________________________________________
> Fight the Power! Blazemail
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
> 






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