xml – 未绑定元素“xsd:schema”的前缀“xsd”
发布时间:2020-12-16 23:23:54 所属栏目:百科 来源:网络整理
导读:我收到了这个WSDL,我遇到了XSD的问题. 我似乎无法在我的XSD文件中找到问题. 什么没约束? 我怎么解决这个问题? error: The prefix "xsd" for element "xsd:schema" is not bound. 这是XSD文件的一部分: xsd:schema targetNamespace="http://www.informatic
我收到了这个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"/> ... 解决方法
将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"> 所以它可以独立于其包装物之外. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |