Are you trying to book a hotel reservation through the api?
Just looking at the api documentation briefly, as I have no experience with it but I would say it's not working because your request is using name-value pairs instead of the xml as defined:
developer_dot_ean_dot_com/docs/read/hotels/hotels_200631/resources/make_reservation#xml
HTML Code:https://book.api.ean.com/external/xmlinterface.jsp?cid=xxx&resType=hotel200631&intfc=ws&xml=<ReservationRequest method="createNewHotelReservation"> <hotelId>122147</hotelId> <arrivalDate>04/16/2011</arrivalDate> <departureDate>04/18/2011</departureDate> <supplierType>H</supplierType> <propertyType>H</propertyType> <RoomGroup> <Room> <numberOfAdults>2</numberOfAdults> <firstName>test</firstName> <lastName>testt</lastName> <bedType>15</bedType> <numberOfBeds>1</numberOfBeds> <smokingPreference>NS</smokingPreference> <specialInformation>test</specialInformation> </Room> </RoomGroup> <customerIPAddress>172.16.82.13</customerIPAddress> <roomTypeCode>481</roomTypeCode> <roomTypeDescription>Standard 1 Queen</roomTypeDescription> <rateCode>481</rateCode> <rateDescription>Standard 1 Queen</rateDescription> <hrnQuoteKey>17A82B173704084695</hrnQuoteKey> <guarantee>C</guarantee> <cancellationPolicy>We understand that sometimes plans fall through. We do not charge a change or cancel fee. However, this property %28The Boston Park Plaza Hotel %26amp%3B Towers%29 imposes the following penalty to its customers that we are required to pass on: Cancellations or changes made after 4:00 PM %28Eastern Daylight Time %28US %26amp%3B Canada%29%29 on Apr 13, 2010 are subject to a 100%25 Cost of Stay penalty. The property makes no refunds for no shows or early checkouts.</cancellationPolicy> <RateInfo> <displayRoomRate>666.55</displayRoomRate> <chargeableRoomRateTaxesAndFees>98.55</chargeableRoomRateTaxesAndFees> <chargeableRoomRateTotal>666.55</chargeableRoomRateTotal> <displayNightlyRates>199.0,369.0</displayNightlyRates> <displayCurrencyCode>USD</displayCurrencyCode> <nativeRoomRate>666.55</nativeRoomRate> <nativeNightlyRates>199.0,369.0</nativeNightlyRates> <nativeCurrencyCode>USD</nativeCurrencyCode> <rateFrequency>B</rateFrequency> </RateInfo> <ReservationInfo> <email>customer@yourDomain.com</email> <firstName>test</firstName> <lastName>test</lastName> <homePhone>4178291392</homePhone> <workPhone>4178291392</workPhone> <creditCardType>VI</creditCardType> <creditCardNumber>5401999999999999</creditCardNumber> <creditCardExpirationMonth>04</creditCardExpirationMonth> <creditCardExpirationYear>2012</creditCardExpirationYear> <creditCardIdentifier>123</creditCardIdentifier> </ReservationInfo> <AddressInfo> <address1>travelnow</address1> <city>springfield</city> <stateProvince>MO</stateProvince> <country>US</country> <postalCode>65807</postalCode> </AddressInfo> </ReservationRequest>
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks