Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

XML Validation of WSDL files

54 views
Skip to first unread message

Arjuna Chala

unread,
Oct 13, 2004, 1:44:03 PM10/13/04
to

By default if you try to validate one of the wsdl files you get an error:

Document is invalid: no grammar found.
Document root element "wsdl:definitions", must match DOCTYPE root "null".

After this error I included

xsi:schemaLocation="http://schemas.xmlsoap.org/wsdl/
http://schemas.xmlsoap.org/wsdl/wsdl.xsd
http://www.w3.org/2001/XMLSchema
http://www.w3.org/2001/XMLSchema.xsd"

Where I have the mapping setup in the System ID catalogs. Now it recognizes "http://schemas.xmlsoap.org/wsdl/" but not "http://www.w3.org/2001/XMLSchema". Here is the complete file:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://schemas.xmlsoap.org/wsdl/
http://schemas.xmlsoap.org/wsdl/wsdl.xsd
http://www.w3.org/2001/XMLSchema
http://www.w3.org/2001/XMLSchema.xsd">


<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema">

<!-- The plan is to get TagInsight working here -->
</xsd:schema>

</wsdl:definitions>


Paul Furbacher [TeamB]

unread,
Oct 19, 2004, 11:43:46 AM10/19/04
to
I don't know if this applies to your situation
but recently, I think a similar problem came up
elsewhere.

Borland's Ken Chan provided this work-around.
Note that I have substituted <xxxx> where the
original question had a specific server name.
You will have to replace that.

Hopefully, the following snippet solves your problem.


> Xerces apparently does not inherently recognize the schema of
> schemas, per se. Perhaps it should. (Most editors, including
> JBuilder, do something internally.) If you actually declare it:
>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://www.<xxxx>.com"
> xmlns="http://www.<xxxx>.com"
>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.w3.org/2001/XMLSchema
> http://www.w3.org/2001/XMLSchema.xsd"
>
> elementFormDefault="qualified">
>
>
> it validates.
>
> //Ken


--


Paul Furbacher (TeamB)

Save time, search the archives:
http://www.borland.com/newsgroups/ngsearch.html

Is it in Joi Ellis's Faq-O-Matic?
http://www.visi.com/~gyles19/fom-serve/cache/1.html

Finally, please send responses to the newsgroup only.
That means, do not send email directly to me.
Thank you.

0 new messages