无法为添加的SOAP(wsdl)生成的序列化XML的元素RequestorID找到属性ID

时间:2016-01-22 05:50:43

标签: xml sabre

我正在使用军刀SOAP Bargain Max finder api。我在RequestorID节点中缺少“ID”属性。作为响应,它返回Schema Not Valid的错误。并显示错误“cvc-complex-type.4:Attribute'ID'必须出现在元素'RequestorID,Code:INVALIDREQ” 请指导我如何处理wsdl和生成的模式。

<?xml version="1.0" encoding="utf-8"?>
    <OTA_AirLowFareSearchRQ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="1.9.2" ResponseType="Return">
      <POS xmlns="http://www.opentravel.org/OTA/2003/05">
        <Source PseudoCityCode="IPCC">
          <RequestorID Type="1" Instance="1" ID_Context="1">
            <CompanyName CompanyShortName="NT" Code="NT">NT</CompanyName>
          </RequestorID>
        </Source>
      </POS>
      <OriginDestinationInformation RPH="1" xmlns="http://www.opentravel.org/OTA/2003/05">
        <DepartureDateTime>2016-04-01T11:00:00</DepartureDateTime>
        <OriginLocation LocationCode="MOW" />
        <DestinationLocation LocationCode="LAX" />
        <TPA_Extensions>
          <SegmentType />
        </TPA_Extensions>
      </OriginDestinationInformation>
      <OriginDestinationInformation RPH="2" xmlns="http://www.opentravel.org/OTA/2003/05">
        <ArrivalDateTime>2016-04-15T11:00:00</ArrivalDateTime>
        <OriginLocation LocationCode="LAX" />
        <DestinationLocation LocationCode="MOW" />
        <TPA_Extensions>
          <SegmentType />
        </TPA_Extensions>
      </OriginDestinationInformation>
      <TravelPreferences ValidInterlineTicket="true" xmlns="http://www.opentravel.org/OTA/2003/05">
        <CabinPref />
        <TPA_Extensions>
          <TripType />
          <LongConnectTime />
          <ExcludeCallDirectCarriers />
        </TPA_Extensions>
      </TravelPreferences>
      <TravelerInfoSummary xmlns="http://www.opentravel.org/OTA/2003/05">
        <SeatsRequested>1</SeatsRequested>
        <AirTravelerAvail>
          <PassengerTypeQuantity Code="ADT" Quantity="1" />
        </AirTravelerAvail>
      </TravelerInfoSummary>
      <TPA_Extensions xmlns="http://www.opentravel.org/OTA/2003/05">
        <IntelliSellTransaction>
          <RequestType Name="50ITINS">50ITINS</RequestType>
        </IntelliSellTransaction>
      </TPA_Extensions>
    </OTA_AirLowFareSearchRQ>

0 个答案:

没有答案