Thread View: borland.public.jbuilder.xml
2 messages
2 total messages
Started by Arjuna Chala
Wed, 13 Oct 2004 17:44
XML Validation of WSDL files
Author: Arjuna Chala
Date: Wed, 13 Oct 2004 17:44
Date: Wed, 13 Oct 2004 17:44
34 lines
2144 bytes
2144 bytes
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>
Re: XML Validation of WSDL files
Author: Paul Furbacher [TeamB]
Date: Tue, 19 Oct 2004 15:43
Date: Tue, 19 Oct 2004 15:43
86 lines
3740 bytes
3740 bytes
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.
Arjuna Chala wrote:
> 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>
>
>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads