Unable to locate a reference

View: New views
3 Messages — Rating Filter:   Alert me  

Unable to locate a reference

by lissette :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

I have obtain this error:
Unable to locate the reference to a supported schema type(DTD, W3W Schema) within this document instance. The error is in xsi:schemaLocation

<tp:CollaborationProtocolProfile
  xmlns:tp="http://www.oasis-open.org/committees/ebxml-cppa/schema/cpp-cpa-2_0.xsd"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xsi:schemaLocation="cpp-cpa.xsd"
  tp:cppid="uri:Caibes-cpp" tp:version="2_0b">

what`s happend?? thanks very much

Re: Unable to locate a reference

by Gerben :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The syntax for xsi:schemaLocation is: "namespace1 schema1 namespace2 schema2 ...".

If you open schema "http://www.oasis-open.org/committees/ebxml-cppa/schema/cpp-cpa-2_0.xsd" (schema1) in any editor or web browser you will see that the targetNamespace is also ""http://www.oasis-open.org/committees/ebxml-cppa/schema/cpp-cpa-2_0.xsd" (namespace1).

So, in this case, the correct syntax is:

xsi:schemaLocation="http://www.oasis-open.org/committees/ebxml-cppa/schema/cpp-cpa-2_0.xsd http://www.oasis-open.org/committees/ebxml-cppa/schema/cpp-cpa-2_0.xsd".

Gerben Abbink
xmlBlueprint XML Editor
www.xmlblueprint.com

Re: Unable to locate a reference

by lissette :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


hi,
Thanks very much.
I have one problem in the Schema:

<element name="ServiceBinding">
                <complexType>
                        <sequence>
                                <element ref="tns:Service"/>
                                <element ref="tns:Override" minOccurs="0" maxOccurs="unbounded"/>
                        </sequence>
                        <attribute name="channelId" type="IDREF" use="required"/>
                        <attribute name="packageId" type="IDREF" use="required"/>
                </complexType>
                <unique name="action.const">
                        <selector xpath=".//Override"/>
                        <field xpath="@action"/>
                </unique>
        </element>

And in the xml:

<tp:ServiceBinding tp:channelId="dcanal1" tp:packageId="paquete1">
  <tp:Service tp:type="uriReference">uri:example.com/services/sellerService</tp:Service>
  <tp:Override tp:action="orderConfirm" tp:channelId="dcanal2" tp:packageId="paquete1" xlink:href="http://ebxml.org/processes/buySell.xml#orderConfirm" xlink:type="simple" />
  </tp:ServiceBinding>

And I obtain this error:
element override is not allowed under element <tp:ServiceBinnding>
What is the problem, in Schema ServiceBinding have a element called override.
Thanks very much