Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml Src resolve:无法解析名称';OTA#U PayloadStdatAttributes';到A(n)和"x27 ;;属性组';组成部分_Xml_Xsd_Wsdl_Xsd Validation_Nusoap - Fatal编程技术网

Xml Src resolve:无法解析名称';OTA#U PayloadStdatAttributes';到A(n)和"x27 ;;属性组';组成部分

Xml Src resolve:无法解析名称';OTA#U PayloadStdatAttributes';到A(n)和"x27 ;;属性组';组成部分,xml,xsd,wsdl,xsd-validation,nusoap,Xml,Xsd,Wsdl,Xsd Validation,Nusoap,我有一个带有nuSoap(PHP)的SOAP服务器,我正在尝试导入/包含xsd,但验证器WSDL显示了下一个错误: Src resolve:无法将名称“OTA_PayloadStdatAttributes”解析为 (n)“属性组”组件 此消息将向交易伙伴推送预订详细信息。推送的信息可能最初在贸易伙伴的数据库中建立该保留,和/或更新当前存在的信息。 上的XSD是OTA_PayloadStdatAttributes 验证程序将显示错误 编辑 添加验证器的所有WSDL、XSD和URLOTA_P

我有一个带有nuSoap(PHP)的SOAP服务器,我正在尝试导入/包含xsd,但验证器WSDL显示了下一个错误:

Src resolve:无法将名称“OTA_PayloadStdatAttributes”解析为 (n)“属性组”组件


此消息将向交易伙伴推送预订详细信息。推送的信息可能最初在贸易伙伴的数据库中建立该保留,和/或更新当前存在的信息。
上的XSD是OTA_PayloadStdatAttributes

验证程序将显示错误

编辑


添加验证器的所有WSDL、XSD和URL

OTA_PayloadStdAttributes
在WSDL中的XSD中没有出现;它必须位于一个导入的XSD中,您尚未显示该XSD

  • 查找引用“OTA_PayloadStdAttributes”属性组的XSD
  • 确定
    OTA_PayloadStdAttributes
    属性组的定义是否直接或间接位于引用它的XSD中
  • 如果没有,请直接或间接添加缺少的定义(通过
    xsd:include
    xsd:import
    --)
  • 如果是,请检查引用的名称空间及其定义是否匹配

  • 这是我们可以得到的最具体的信息,您没有发布MCVE。

    您应该发布一个。您的编辑甚至没有接近创建一个。我一直在测试,但我仍然找到了解决方案。我添加了实际的代码,如果你能帮助找到解决方案的话。正如我在对你的问题的评论中提到的,你应该创建一个新的代码,而不是问那些愿意帮助你费力阅读这么多多余材料的人。你也有义务为未来的读者创建一个独立的问题,而不是依赖于可能中断的外部链接。
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://otatest.goldcar.es/OpenTravel_2015B_XML" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:elementFormDefault="qualified" xmlns:version="2.000" xmlns:id="OTA2015B" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://otatest.goldcar.es/OpenTravel_2015B_XML">
    <types>
    <xsd:schema elementFormDefault="qualified" version="2.000" id="OTA2015B" targetNamespace="http://otatest.goldcar.es/OpenTravel_2015B_XML"
    >
    
     <xsd:import schemaLocation="http://otatest.goldcar.es/OpenTravel_2015B_XML/OTA_CommonTypes.xsd" />
     <xsd:import schemaLocation="http://otatest.goldcar.es/OpenTravel_2015B_XML/OTA_VehicleCommonTypes.xsd" />
    
       <!-- <xsd:include namespace="http://otatest.goldcar.es/OpenTravel_2015B_XML" schemaLocation="http://otatest.goldcar.es/OpenTravel_2015B_XML/OTA_VehResNotifRQ.xsd"/>
       <xsd:include namespace="http://otatest.goldcar.es/OpenTravel_2015B_XML" schemaLocation="http://otatest.goldcar.es/OpenTravel_2015B_XML/OTA_VehResNotifRS.xsd"/> -->
    
    </xsd:schema>
    </types>
    <message name="OTA_VehResNotifRQ">
      <part name="POS" type="xsd:string" />
      <part name="Reservations" type="xsd:string" /></message>
    <message name="OTA_VehResNotifRS">
      <part name="Return" type="xsd:string" /></message>
    <portType name="GoldcarPortType">
      <operation name="OTA_VehResNotifRQ">
        <documentation>This message will push reservation details to a trading partner. The information pushed may establish this reservation initially in a trading partner's database and/or update the information that currently exists.</documentation>
        <input message="tns:OTA_VehResNotifRQ"/>
        <output message="tns:OTA_VehResNotifRS"/>
      </operation>
    </portType>
    <binding name="GoldcarBinding" type="tns:GoldcarPortType">
      <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
      <operation name="OTA_VehResNotifRQ">
        <soap:operation soapAction="http://otatest.goldcar.es/#OTA_VehResNotifRQ" style="rpc"/>
        <input><soap:body use="encoded" namespace="http://otatest.goldcar.es/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
        <output><soap:body use="encoded" namespace="http://otatest.goldcar.es/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
      </operation>
    </binding>
    <service name="Goldcar">
      <port name="GoldcarPort" binding="tns:GoldcarBinding">
        <soap:address location="http://localhost/ota2sarg2/nuevo_server.php"/>
      </port>
    </service>
    </definitions>