Advertisement
Guest User

RC Request/Response Sample

a guest
May 3rd, 2015
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.48 KB | None | 0 0
  1. SOAP request: https://rentcentricqa.eaglerider.com/OTA2011A/V1.1.asmx
  2. SOAPAction: "http://www.opentravel.org/OTA/2003/05/OTA_VehRes", Content-Type: text/xml;charset=UTF-8, Content-Length: 2541
  3. <?xml version="1.0" encoding="UTF-8"?>
  4. <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.opentravel.org/OTA/2003/05" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
  5.   <env:Body>
  6.     <tns:OTA_VehRes>
  7.       <AA:OTA_VehResRQ xmlns:AA="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" Version="0">
  8.   <AA:POS>
  9.     <AA:Source PseudoCityCode="">
  10.       <AA:RequestorID ID="" ID_Context=""/>
  11.     </AA:Source>
  12.   </AA:POS>
  13.   <AA:VehResRQCore>
  14.     <AA:VehRentalCore PickUpDateTime="2015-05-03T12:00:00" ReturnDateTime="2015-05-04T12:00:00" xs:type="AA:VehicleRentalCoreType">
  15.       <AA:PickUpLocation LocationCode="ERLAX01"/>
  16.       <AA:ReturnLocation LocationCode="ERLAX01"/>
  17.     </AA:VehRentalCore>
  18.     <AA:Customer>
  19.       <AA:Primary>
  20.         <AA:PersonName xs:type="AA:PersonNameType">
  21.           <AA:GivenName>Osama</AA:GivenName>
  22.           <AA:Surname>Autofill</AA:Surname>
  23.         </AA:PersonName>
  24.         <AA:Telephone PhoneTechType="1" PhoneNumber="01223491484"/>
  25.         <AA:Telephone PhoneTechType="5" PhoneNumber="01223491484"/>
  26.         <AA:Email>brekaa.osama@gmail.com</AA:Email>
  27.         <AA:Address>
  28.           <AA:AddressLine>N/A</AA:AddressLine>
  29.           <AA:CityName>Pacadena</AA:CityName>
  30.           <AA:PostalCode>91411</AA:PostalCode>
  31.           <AA:StateProv StateCode="CA"/>
  32.           <AA:CountryName Code="US"/>
  33.         </AA:Address>
  34.         <AA:Document DocID="" DocIssueStateProv="" DocIssueCountry="" xs:type="AA:DocumentType"/>
  35.         <AA:CustLoyalty/>
  36.       </AA:Primary>
  37.     </AA:Customer>
  38.     <AA:VendorPref Code="WEAGLE" CodeContext="Eaglerider" xs:type="AA:CompanyNamePrefType"/>
  39.     <AA:VehPref Code="HEG" xs:type="AA:VehiclePrefType"/>
  40.     <AA:RateQualifier VendorRateID="69747" xs:type="AA:RateQualifierType"/>
  41.   </AA:VehResRQCore>
  42.   <AA:VehResRQInfo>
  43.     <AA:ArrivalDetails Number=""/>
  44.     <AA:RentalPaymentPref>
  45.       <AA:PaymentCard CardType="VISA" CardNumber="4242424242424242" ExpireDate="0116" xs:type="AA:PaymentCardType">
  46.         <AA:CardHolderName>Osama Brekaa</AA:CardHolderName>
  47.       </AA:PaymentCard>
  48.     </AA:RentalPaymentPref>
  49.     <AA:Remark xs:type="AA:ParagraphType">
  50.       <AA:Text xs:type="AA:FormattedTextTextType"/>
  51.     </AA:Remark>
  52.     <AA:TPA_Extensions>
  53.       <AA:MoreInfo SecondVehiclePreference="HRK" Tentative="false"/>
  54.       <AA:CustomRate/>
  55.       <AA:OtherCharges/>
  56.     </AA:TPA_Extensions>
  57.   </AA:VehResRQInfo>
  58. </AA:OTA_VehResRQ>
  59.     </tns:OTA_VehRes>
  60.   </env:Body>
  61. </env:Envelope>
  62.  
  63. SOAP response (status 200)
  64. <?xml version="1.0" encoding="utf-8"?>
  65. <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  66.   <soap:Body>
  67.     <OTA_VehResResponse xmlns="http://www.opentravel.org/OTA/2003/05">
  68.       <OTA_VehResResult xmlns:AA="http://www.opentravel.org/OTA/2003/05" xmlns="http://www.opentravel.org/OTA/2003/05" Version="0">
  69.         <AA:Errors>
  70.           <AA:Error xmlns:AB="http://www.w3.org/2001/XMLSchema-instance" AB:type="AA:ErrorType" Type="1">Error Saving Customer Information</AA:Error>
  71.         </AA:Errors>
  72.       </OTA_VehResResult>
  73.     </OTA_VehResResponse>
  74.   </soap:Body>
  75. </soap:Envelope>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement