schema reference

Having trouble installing Oxygen? Got a bug to report? Post it all here.
TE

schema reference

Post 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!
Dan
Posts: 501
Joined: Mon Feb 03, 2003 10:56 am

Post 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
TE
Posts: 6
Joined: Thu Nov 13, 2003 5:42 pm

thanks dan

Post by TE »

thanks for your reply.
i'm looking forward for this feature.
i think it's very important.
Dan
Posts: 501
Joined: Mon Feb 03, 2003 10:56 am

Post 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.
Post Reply