用于地理自动完成的SOAP API替代方案

时间:2016-10-26 08:36:35

标签: sabre

REST API中是否有针对地理自动完成的SOAP API替代方案?是 EncodeDecodeLLSRQ 吗?如果是这样,当我尝试使用以下提供的请求时,它始终提供以下响应。我对doc中提供的示例也得到了相同的响应。

<EncodeDecodeRS Version="2.0.0" 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">
     <stl:ApplicationResults status="NotProcessed">
        <stl:Error type="Application" timeStamp="2016-10-26T03:33:02-05:00">
           <stl:SystemSpecificResults>
              <stl:Message>Unexpected request processing error</stl:Message>
              <stl:ShortText>ERR.SWS.PROVIDER.REQUEST_HANDLER_ERROR</stl:ShortText>
           </stl:SystemSpecificResults>
        </stl:Error>
     </stl:ApplicationResults>
</EncodeDecodeRS>

请求:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sec="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:mes="http://www.ebxml.org/namespaces/messageHeader" xmlns:ns="http://webservices.sabre.com/sabreXML/2011/10">
   <soapenv:Header>
       <sec:Security>
         <sec:BinarySecurityToken>--Token--</sec:BinarySecurityToken>
      </sec:Security>
      <mes:MessageHeader>
         <mes:From>
               <mes:PartyId>from</mes:PartyId>
         </mes:From>
          <mes:To>
               <mes:PartyId>ws</mes:PartyId>
           </mes:To>
         <mes:CPAId>--CPAId--</mes:CPAId>
         <mes:ConversationId>eservices@sabre.com</mes:ConversationId>
         <mes:Action>EncodeDecodeLLSRQ</mes:Action>
         <mes:MessageData>
            <mes:MessageId>00000</mes:MessageId>
            <mes:Timestamp>233</mes:Timestamp>
         </mes:MessageData>
      </mes:MessageHeader>
   </soapenv:Header>
   <soapenv:Body>
      <ns:EncodeDecodeRQ Version="2.0.0">
         <ns:Encode>
            <ns:Address>
                <ns:CityName>Atlanta</ns:CityName>
            </ns:Address>
         </ns:Encode>
      </ns:EncodeDecodeRQ>
   </soapenv:Body>
</soapenv:Envelope>

1 个答案:

答案 0 :(得分:1)

我不认为EncodeDecodeLLSRQ旨在做你正在寻找的东西,但它可能会起作用。例如,输入不完整的城市名称时,服务将返回可能值的列表。

RQ:

<CityName>MONTEV</CityName>

RS:

<Text>MVD   MONTEVIDEO, URUGUAY</Text>
<Text>MVE   MONTEVIDEO     MN, MINNESOTA,USA</Text>
<Text>FMV   MONTEVIDEO FLUVIA, URUGUAY</Text>
<Text>VDT   MONTEVIDEO TC BUS, URUGUAY</Text>

您是否可以访问SOAP API?如果是这样,请你分享完整的RQ,看看那里有什么问题吗?

相关问题