Префикс "xsd" для элемента "xsd:schema" не связан
Я получил этот WSDL, и у меня возникла проблема с XSD.
Я не могу найти проблему в моем файле XSD.
Что не связано? Как я могу решить это?
error: The prefix "xsd" for element "xsd:schema" is not bound.
Это часть файла XSD:
<xsd:schema targetNamespace="http://www.informatica.com/wsdl/"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
xmlns="http://www.informatica.com/wsdl/"
xmlns:infatype="http://www.informatica.com/types/">
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/http/"/>
<xsd:element name="SHA003Bis_GetArticleDataResponse"
type="SHA003Bis_GetArticleDataResponseType"/>
<xsd:element name="SHA003Bis_GetArticleDataRequest"
type="SHA003Bis_GetArticleDataRequestType"/>
<xsd:complexType name="SHA003Bis_GetArticleDataRequestType">
<xsd:sequence>
<xsd:element name="SHA003Bis_GetArticleDataRequestElement">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Company" minOccurs="0" maxOccurs="1">
<xsd:simpleType>
<xsd:restriction base="xsd:integer"/>
</xsd:simpleType>
</xsd:element>
И это часть WSDL:
<wsdl:definitions targetNamespace="http://www.informatica.com/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:n="http://www.informatica.com/wsdl/"
xmlns:infa="http://www.informatica.com/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<xsd:schema targetNamespace="http://www.informatica.com/wsdl/"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
xmlns="http://www.informatica.com/wsdl/"
xmlns:infatype="http://www.informatica.com/types/">
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/http/"/>
<xsd:element name="SHA003Bis_GetArticleDataResponse"
type="SHA003Bis_GetArticleDataResponseType"/>
<xsd:element name="SHA003Bis_GetArticleDataRequest"
type="SHA003Bis_GetArticleDataRequestType"/>
<xsd:complexType name="SHA003Bis_GetArticleDataRequestType">
<xsd:sequence>
<xsd:element name="SHA003Bis_GetArticleDataRequestElement">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Company" minOccurs="0" maxOccurs="1">
<xsd:simpleType>
<xsd:restriction base="xsd:integer"/>
...
1 ответ
Решение
Добавлять xmlns:xsd="http://www.w3.org/2001/XMLSchema"
к корневому элементу вашего XSD:
<xsd:schema targetNamespace="http://www.informatica.com/wsdl/"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
xmlns="http://www.informatica.com/wsdl/"
xmlns:infatype="http://www.informatica.com/types/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
так что он может стоять отдельно от своей обертки.