title: Amadeus : Travel Build Request for hotel response error 17 | session 'no agreement on destination'
body: <p>I have been having issues with my amadeus ws travel build 
  Each time i tried creating a reservation for the hotel, i keep getting this error</p>
  
  <p>17|session|No agreement on destination</p>
  
  <p>Here is my code
  // curl url</p>
  
  <pre><code>$soapUrl = "http://amadeusws.tripxml.com/TripXML/wsTravelBuild_v03.asmx";
  
  
   $xml_post_string = "&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;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/'&gt;
    &lt;soap:Header&gt;
      &lt;TripXML xmlns='http://amadeusws.tripxml.com/wsTravelBuild'&gt;
        &lt;userName&gt;string&lt;/userName&gt;
        &lt;password&gt;string&lt;/password&gt;
        &lt;compressed&gt;boolean&lt;/compressed&gt;
      &lt;/TripXML&gt;
    &lt;/soap:Header&gt;
    &lt;soap:Body&gt;
      &lt;wmTravelBuild xmlns='http://traveltalk.com/wsTravelBuild'&gt;
        &lt;OTA_TravelItineraryRQ&gt;
        &lt;POS&gt;
        &lt;Source PseudoCityCode='JNBZA21ZZ' ISOCurrency='NGN'&gt;
        &lt;RequestorID Type='21' ID='RubyTravel'/&gt;&lt;/Source&gt;
        &lt;TPA_Extensions&gt;
        &lt;Provider&gt;
        &lt;Name&gt;Amadeus&lt;/Name&gt; 
                 &lt;System&gt;Test&lt;/System&gt; 
                 &lt;Userid&gt;user&lt;/Userid&gt; 
                 &lt;Password&gt;user&lt;/Password&gt; 
        &lt;/Provider&gt;
        &lt;/TPA_Extensions&gt;
        &lt;/POS&gt;
    &lt;OTA_HotelResRQ&gt;&lt;HotelReservations&gt;
          &lt;HotelReservation RoomStayReservation='1'&gt;
              &lt;RoomStays&gt;
                &lt;RoomStay&gt;
                    &lt;RoomRates&gt;
                      &lt;RoomRate BookingCode='Q4WTPQJ' NumberOfUnits='1' RatePlanCode='PRO'&gt;
                       &lt;/RoomRate&gt;
                      &lt;/RoomRates&gt;
                     &lt;GuestCounts&gt;
                      &lt;GuestCount AgeQualifyingCode='ADT' Age='0' Count='1' /&gt;
                      &lt;/GuestCounts&gt;
                      &lt;TimeSpan Start='2017-08-20' Duration='' End='2017-08-23' &gt;
                              &lt;/TimeSpan&gt;
                      &lt;Guarantee GuaranteeType='GuaranteeRequired'&gt;
                      &lt;GuaranteesAccepted&gt;
                       &lt;GuaranteeAccepted&gt;
                          &lt;PaymentCard CardType='Credit' CardCode='VI' CardNumber='4444333322221111' ExpireDate='0520'&gt;
                          &lt;CardHolderName&gt;user User&lt;/CardHolderName&gt;
                              &lt;Address FormattedInd='false' Type='Home'&gt;
                          &lt;StreetNmbr&gt;7300 NORTH KENDALL DRIVE&lt;/StreetNmbr&gt;
                          &lt;CityName&gt;MIAMI&lt;/CityName&gt;
                          &lt;PostalCode&gt;33156&lt;/PostalCode&gt;
                          &lt;StateProv&gt;FL&lt;/StateProv&gt;
                          &lt;CountryName&gt;USA&lt;/CountryName&gt;
                              &lt;/Address&gt;
                          &lt;/PaymentCard&gt;
                      &lt;/GuaranteeAccepted&gt;
                      &lt;/GuaranteesAccepted&gt;
                     &lt;/Guarantee&gt;
                  &lt;DepositPayments&gt; &lt;RequiredPayment&gt;
                  &lt;AcceptedPayments&gt; 
                      &lt;AcceptedPayment&gt;
                          &lt;PaymentCard CardType='Credit' CardCode='VI' CardNumber='4444333322221111' ExpireDate='0520'&gt; &lt;CardHolderName&gt;user User&lt;/CardHolderName&gt;
                              &lt;Address FormattedInd='false' Type='Home'&gt;
                                  &lt;StreetNmbr&gt;7300 NORTH KENDALL DRIVE&lt;/StreetNmbr&gt;
                                  &lt;CityName&gt;MIAMI&lt;/CityName&gt;
                                  &lt;PostalCode&gt;33156&lt;/PostalCode&gt;
                                  &lt;StateProv&gt;FL&lt;/StateProv&gt;
                                  &lt;CountryName&gt;USA&lt;/CountryName&gt;
                                   &lt;/Address&gt; 
                              &lt;/PaymentCard&gt;
                          &lt;/AcceptedPayment&gt;
                      &lt;/AcceptedPayments&gt; 
                  &lt;/RequiredPayment&gt; 
              &lt;/DepositPayments&gt;
                   &lt;BasicPropertyInfo ChainCode='HS' HotelCode='ATK' HotelCityCode='BKK' HotelCodeContext='1A' /&gt;
                  &lt;ResGuestRPHs&gt;
                      &lt;ResGuestRPH RPH=''/&gt;
                  &lt;/ResGuestRPHs&gt; 
                &lt;/RoomStay&gt;
              &lt;/RoomStays&gt;
  &lt;/HotelReservation&gt;
  
  
                 &lt;/HotelReservations&gt;&lt;/OTA_HotelResRQ&gt;&lt;TPA_Extensions&gt;&lt;PNRData&gt;
                        &lt;Traveler&gt;
                         &lt;PersonName&gt;
                          &lt;NamePrefix&gt;MR&lt;/NamePrefix&gt;                    
                          &lt;GivenName&gt;user&lt;/GivenName&gt;
                          &lt;Surname&gt;user&lt;/Surname&gt;
                          &lt;NameTitle&gt;Mr.&lt;/NameTitle&gt;
                         &lt;/PersonName&gt;
                         &lt;TravelerRefNumber RPH='1'/&gt;
                        &lt;/Traveler&gt;
                        &lt;Telephone PhoneLocationType='Home' CountryAccessCode='1'  FormattedInd='0' AreaCityCode='MIAMI' PhoneNumber='8789878954'/&gt;
                        &lt;Email&gt;email@gmail.com&lt;/Email&gt;
                        &lt;Ticketing&gt;&lt;TicketAdvisory&gt;OK&lt;/TicketAdvisory&gt;&lt;/Ticketing&gt;
                       &lt;/PNRData&gt;&lt;/TPA_Extensions&gt;
                       &lt;/OTA_TravelItineraryRQ&gt;   
          &lt;/wmTravelBuild&gt;
        &lt;/soap:Body&gt;
      &lt;/soap:Envelope&gt;";
  /// header for the curl function
       $headers = array(
      "POST /TripXML/wsTravelBuild_v03.asmx HTTP/1.1",
      "Host: amadeusws.tripxml.com",
      "Content-Type: text/xml; charset=utf-8",
      "SOAPAction: "."http://traveltalk.com/wsTravelBuild/wmTravelBuild",
      "POST /TripXML/wsLowFarePlus.asmx HTTP/1.1",
      "Content-Length: ".strlen($xml_post_string)
      ); 
      $url = $soapUrl; // curl url
      $ch = curl_init();
      curl_setopt($ch, CURLOPT_URL, $url);
      curl_setopt($ch, CURLOPT_POST, true);
      curl_setopt($ch, CURLOPT_POSTFIELDS, $xml_post_string);
      curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
      $reply = curl_exec($ch);
      curl_close($ch);
  </code></pre>
  
  <p>Have anybody had this problem and be able to fix it, I used the same url for the travel build for air and it works well but when i send a request to create a reservation for hotel, it keep returning error.</p>