小编Uni*_*Que的帖子

Amadeus:针对酒店响应错误 17 的 Travel Build Request | 会话“未就目的地达成一致”

我的 amadeus ws travel build 一直有问题 每次我尝试为酒店创建预订时,我总是收到此错误

17|会议|没有就目的地达成一致

这是我的代码 // curl url

$soapUrl = "http://amadeusws.tripxml.com/TripXML/wsTravelBuild_v03.asmx";


 $xml_post_string = "<?xml version='1.0' encoding='utf-8'?>
<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>
  <soap:Header>
    <TripXML xmlns='http://amadeusws.tripxml.com/wsTravelBuild'>
      <userName>string</userName>
      <password>string</password>
      <compressed>boolean</compressed>
    </TripXML>
  </soap:Header>
  <soap:Body>
    <wmTravelBuild xmlns='http://traveltalk.com/wsTravelBuild'>
      <OTA_TravelItineraryRQ>
      <POS>
      <Source PseudoCityCode='JNBZA21ZZ' ISOCurrency='NGN'>
      <RequestorID Type='21' ID='RubyTravel'/></Source>
      <TPA_Extensions>
      <Provider>
      <Name>Amadeus</Name> 
               <System>Test</System> 
               <Userid>user</Userid> 
               <Password>user</Password> 
      </Provider>
      </TPA_Extensions>
      </POS>
  <OTA_HotelResRQ><HotelReservations>
        <HotelReservation RoomStayReservation='1'>
            <RoomStays>
              <RoomStay>
                  <RoomRates>
                    <RoomRate BookingCode='Q4WTPQJ' NumberOfUnits='1' RatePlanCode='PRO'>
                     </RoomRate>
                    </RoomRates>
                   <GuestCounts>
                    <GuestCount AgeQualifyingCode='ADT' Age='0' Count='1' />
                    </GuestCounts>
                    <TimeSpan Start='2017-08-20' Duration='' End='2017-08-23' >
                            </TimeSpan>
                    <Guarantee GuaranteeType='GuaranteeRequired'>
                    <GuaranteesAccepted> …
Run Code Online (Sandbox Code Playgroud)

php amadeus

5
推荐指数
1
解决办法
2106
查看次数

标签 统计

amadeus ×1

php ×1