Page 1 of 1

schema reference

Posted: Wed Nov 12, 2003 7:10 pm
by TE
Hi,

if I store my SOAP schema locally, the following code is fine:

<?xml version="1.0" ?>
<SOAP:Envelope
xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"

xs:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ file:///d:/xmlpilot/soaplocal.xsd>

But if I reference to the schema on the web, it doesnt work!


Code:

<?xml version="1.0" ?>
<SOAP:Envelope
xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"

xs:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/ >


Error Message:

Cannot find the declaration of element 'SOAP:Envelope'.


Is there anyone who can solve that problem? Thank you very much!

Posted: Thu Nov 13, 2003 10:37 am
by Dan
Hello,

We fixed this in the current version that is under development. It was a problem in accessing the HTTP resources.

I recommend to setup an XML catalog in which you map the url

http://schemas.xmlsoap.org/soap/envelope/
to
file:///d:/xmlpilot/soaplocal.xsd

Sample catalog:
-----------------------
<?xml version="1.0"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">

<!-- Map web references to local -->
<rewriteURI
uriStartString="http://schemas.xmlsoap.org/soap/envelope/"
rewritePrefix="soaplocal.xsd"/>

</catalog>
------------------------
You will have to place this catalog in the directory:
D:\xmlpilot
After adding it into the editor options (Section XML catalog) you have to restart the editor.

Regards,
Dan

thanks dan

Posted: Thu Nov 13, 2003 5:44 pm
by TE
thanks for your reply.
i'm looking forward for this feature.
i think it's very important.

Posted: Thu Nov 13, 2003 6:19 pm
by Dan
The XML catalog feature is available into the Oxygen current version (2.0.4)
The bug fix regarding the HTTP access will be included into the next version.