2015-12-10 3 views
0

Я пытаюсь использовать Sabre SOAP api для бронирования отеля. Но не смог пройти эту ошибку ПРОВЕРКИ УРОВНЯ. Мой полезный груз запрос на бронирование отеля приводится ниже:ПРОВЕРКА УРОВНЯ УРОВНЯ ПРОВЕРКИ в Сабе бронирование гостиниц SOAP api

<?xml version='1.0' encoding='UTF-8'?> 
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader"> 
    <SOAP-ENV:Header> 
     <eb:MessageHeader SOAP-ENV:mustUnderstand="0"> 
      <eb:From> 
       <eb:PartyId eb:type="urn:x12.org:IO5:01">from</eb:PartyId> 
      </eb:From> 
      <eb:To> 
       <eb:PartyId eb:type="urn:x12.org:IO5:01">ws</eb:PartyId> 
      </eb:To> 
      <eb:CPAId>H65H</eb:CPAId> 
      <eb:ConversationId>app_name</eb:ConversationId> 
      <eb:Service eb:type="sabreXML"></eb:Service> 
      <eb:Action>OTA_HotelResLLSRQ</eb:Action> 
     </eb:MessageHeader> 
     <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext"> 
      <wsse:BinarySecurityToken valueType="String" EncodingType="wsse:Base64Binary"> 
<!--     Use Security token from Authentication Request --> 
      <<-- sabre auth token -->> 
      </wsse:BinarySecurityToken> 
     </wsse:Security> 
    </SOAP-ENV:Header> 
    <SOAP-ENV:Body> 
     <OTA_HotelResRQ xmlns="http://webservices.sabre.com/sabreXML/2011/10" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="2.2.0"> 
     <Hotel> 
      <BasicPropertyInfo ChainCode="HY" HotelCode="1"/> 
      <Guarantee Type="GDPST"> 
       <CC_Info> 
        <PaymentCard Code="cc-cvc" ExpireDate="cc-date" Number="cc-number"/> 
        <PersonName> 
         <Surname>TEST</Surname> 
        </PersonName> 
       </CC_Info> 
      </Guarantee> 
      <GuestCounts Count="2"> 
       <ExtraGuest>1</ExtraGuest> 
      </GuestCounts> 
      <RoomType NumberOfUnits="1" RoomTypeCode="A2DRAC"/> 
      <TimeSpan End="12-24T13:00" Start="12-22T12:00"/> 
     </Hotel> 
    </OTA_HotelResRQ> 
    </SOAP-ENV:Body> 
</SOAP-ENV:Envelope> 

Но я получил ответ обратно с 1VERIFY RATE LEVEL ошибки, как показано ниже

<?xml version="1.0" encoding="UTF-8"?> 
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"> 
    <soap-env:Header> 
     <eb:MessageHeader xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" eb:version="1.0" soap-env:mustUnderstand="1"> 
      <eb:From> 
       <eb:PartyId eb:type="urn:x12.org:IO5:01">ws</eb:PartyId> 
      </eb:From> 
      <eb:To> 
       <eb:PartyId eb:type="urn:x12.org:IO5:01">from</eb:PartyId> 
      </eb:To> 
      <eb:CPAId>H65H</eb:CPAId> 
      <eb:ConversationId>app_name</eb:ConversationId> 
      <eb:Service eb:type="sabreXML"/> 
      <eb:Action>OTA_HotelResLLSRS</eb:Action> 
      <eb:MessageData> 
       <eb:MessageId>[email protected]</eb:MessageId> 
       <eb:Timestamp>2015-12-09T06:26:01</eb:Timestamp> 
      </eb:MessageData> 
     </eb:MessageHeader> 
     <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext"> 
      <wsse:BinarySecurityToken valueType="String" EncodingType="wsse:Base64Binary">Shared/IDL:IceSess\/SessMgr:1\.0.IDL/Common/!ICESMS\/ACPCRTC!ICESMSLB\/CRT.LB!-3460990906663307648!220138!0</wsse:BinarySecurityToken> 
     </wsse:Security> 
    </soap-env:Header> 
    <soap-env:Body> 
     <OTA_HotelResRS xmlns="http://webservices.sabre.com/sabreXML/2011/10" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:stl="http://services.sabre.com/STL/v01" Version="2.2.0"> 
      <stl:ApplicationResults status="NotProcessed"> 
       <stl:Error type="BusinessLogic" timeStamp="2015-12-09T00:26:01-06:00"> 
        <stl:SystemSpecificResults> 
         <stl:Message>1VERIFY RATE LEVEL            </stl:Message> 
         <stl:ShortText>ERR.SWS.HOST.ERROR_IN_RESPONSE</stl:ShortText> 
        </stl:SystemSpecificResults> 
       </stl:Error> 
      </stl:ApplicationResults> 
     </OTA_HotelResRS> 
    </soap-env:Body> 
</soap-env:Envelope> 

Я не могу понять, что проблема в том, поскольку я не могу найти что-либо, связанное с 1VERIFY RATE LEVEL in Saber documenatation.

В чем проблема? Недействителен ли мой запрос полезной нагрузки или отсутствуют некоторые параметры?

Thanks

ответ

0

Я думаю, это - то, где вы поступили не так.

<eb:Action>OTA_HotelResLLSRQ</eb:Action> 

правильное значение

<eb:Action>OTA_HotelAvailLLSRQ</eb:Action> 

также передать значение в поле ниже тега.

<eb:Service eb:type="sabreXML">HotelAvailLLSRQ</eb:Service> 

запрос часть тела

<ns:OTA_HotelAvailRQ Version="2.2.0"> 
     <ns:AvailRequestSegment> 

      <ns:GuestCounts Count="2"/> 
      <ns:HotelSearchCriteria > 
       <ns:Criterion> 
        <ns:Address> 
         <ns:CityName></ns:CityName> 
         <ns:CountryCode>US</ns:CountryCode> 
         <ns:PostalCode></ns:PostalCode> 
         <ns:StreetNmbr></ns:StreetNmbr> 
        </ns:Address> 
        <ns:HotelRef HotelCityCode="DFW" /> 
       </ns:Criterion> 
      </ns:HotelSearchCriteria> 
      <ns:TimeSpan End="02-12" Start="01-12"/> 
     </ns:AvailRequestSegment> 
    </ns:OTA_HotelAvailRQ> 

Я надеюсь, что это решает проблему. Спасибо.