Cannot find an attribute ID for an element RequestorID for added SOAP (wsdl) Generated serialized XML

ぃ、小莉子 提交于 2020-01-04 05:53:12

问题


I am using sabre SOAP Bargain Max finder api. i am missing "ID" Attribute in RequestorID node. In response it return an error of Schema Not Valid. and shows the error "cvc-complex-type.4: Attribute 'ID' must appear on element 'RequestorID , Code:INVALIDREQ" please Guide me what to do with wsdl and generated schema.

<?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>

来源:https://stackoverflow.com/questions/34939866/cannot-find-an-attribute-id-for-an-element-requestorid-for-added-soap-wsdl-gen

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!