未声明XML架构引用和类型

未声明XML架构引用和类型,xml,xsd,envelope,Xml,Xsd,Envelope,我是架构构建的新手,在理解名称空间引用应该如何工作时遇到了问题。我使用一个类似于BizTalk的应用程序,并对以下模式执行去包络操作。我不确定这是否是一般性错误,但这是我得到的错误: 错误 属性定义 <?xml version="1.0" encoding="utf-16"?> <xs:schema xmlns="http://Wheelhouse/Property" elementFormDefault="qualified" targetNamespace="http://

我是架构构建的新手,在理解名称空间引用应该如何工作时遇到了问题。我使用一个类似于BizTalk的应用程序,并对以下模式执行去包络操作。我不确定这是否是一般性错误,但这是我得到的错误:

错误

属性定义

<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns="http://Wheelhouse/Property" elementFormDefault="qualified" targetNamespace="http://Wheelhouse/Property" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="Property" type="PropertyType" />
  <xs:complexType name="PropertyType">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="1" name="ID" />
      <xs:element minOccurs="0" maxOccurs="1" name="Listing_Number" />
      <xs:element minOccurs="0" maxOccurs="1" name="Status" />
    </xs:sequence>
  </xs:complexType>
</xs:schema>
<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="blueintegrator://Wheelhouse/PropertyDefinition__4f3f265569d54e9fa898eba835502c6a_" namespace="http://Wheelhouse/Property" />
  <xs:element xmlns="http://Wheelhouse/Property" name="Root">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" maxOccurs="unbounded" name="Property" type="PropertyType" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>
属性列表定义

<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns="http://Wheelhouse/Property" elementFormDefault="qualified" targetNamespace="http://Wheelhouse/Property" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="Property" type="PropertyType" />
  <xs:complexType name="PropertyType">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="1" name="ID" />
      <xs:element minOccurs="0" maxOccurs="1" name="Listing_Number" />
      <xs:element minOccurs="0" maxOccurs="1" name="Status" />
    </xs:sequence>
  </xs:complexType>
</xs:schema>
<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="blueintegrator://Wheelhouse/PropertyDefinition__4f3f265569d54e9fa898eba835502c6a_" namespace="http://Wheelhouse/Property" />
  <xs:element xmlns="http://Wheelhouse/Property" name="Root">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" maxOccurs="unbounded" name="Property" type="PropertyType" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

它不起作用的原因与schemaLocation属性中的URI scheme blueintegrator有关。最有可能的是,用于使用XSD的工具不理解该URI,因此它无法加载包含http://Wheelhouse/Property:PropertyType 类型

对于普通工具,如果将该属性的值更改为其他值,例如,如果将两个文件放在同一文件夹中,然后将整个schemaLocation值替换为文件名,您将看到模式完全有效