[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlbeans-dev
Subject: RE: bad error message when parsing snowboarder.wsdl
From: "Jacob Danner" <jacobd () bea ! com>
Date: 2004-09-23 21:32:48
Message-ID: 4B2B4C417991364996F035E1EE39E2E101C8743F () uskiex01 ! amer ! bea ! com
[Download RAW message or body]
You'ge getting the issue because of the following element.
<schema targetNamespace="http://namespaces.snowboard-info.com"
xmlns="http://www.w3.org/1999/XMLSchema">
The schema version you are trying to use was a W3C Note. If you make adjustments for \
the current version things work fine. Luckily, the schema you note makes no use of \
any pre-2001 datatypes so the adjustment is simple. <schema \
targetNamespace="http://namespaces.snowboard-info.com" \
xmlns="http://www.w3.org/2001/XMLSchema">
I think checks for this may not serve a real purpose. Maybe an FAQ would be helpful \
instead.
-Jacobd
-----Original Message-----
From: James Strachan [mailto:jstrachan@protique.com]
Sent: Thursday, September 23, 2004 8:55 AM
To: dev@xmlbeans.apache.org
Subject: bad error message when parsing snowboarder.wsdl
I tried passing Uche's snowboarder example WSDL
http://www-106.ibm.com/developerworks/webservices/library/ws-soap/
code.html
into XMLBeans V2 (CVS HEAD) via the Ant task and scomp script and got
this rather cryptic output
snowboard.wsdl:0: error: cannot.load.file: Cannot load wsdl file
src/test/org/codehaus/activesoap/examples/snowboard/snowboard.wsdl:
null
java.lang.ClassCastException
at
org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompil
er.java:712)
at
org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java
> 867)
at
org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:
294)
It turns out the WSDL is a little old and uses an old XSD namespace. I
just thought I'd mention it as I was scratching my head over this for a
while. Rather than blindly casting on this line, it might be worth
adding an extra line of code to check if no valid schema documents
could be found matching the correct XSD namespace and reporting why
none could be found.
James
/**********************************
* James Strachan
*
* Protique
* http://protique.com/
* Enterprise Open Source
*
* Blog:
* http://radio.weblogs.com/0112098/
**********************************/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic