在 Sabre Soap 中获得信用卡批准 API

Get Credit Card Approval in Sabre Soap API

我调用了 Sabre SOAP API 请求 CreditVerificationLLSRQ 以获得信用卡批准响应,这里我在响应中遇到了一些错误。谁能建议我解决这个错误。我的要求如下:

<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:v3="http://services.sabre.com/sp/eab/v3_2">
   <soapenv:Header>
      <sec:Security>

         <sec:BinarySecurityToken>XXXXXXXXXXXXXXXXXXXXX</sec:BinarySecurityToken>
      </sec:Security>
      <mes:MessageHeader>
         <mes:From>
            <!--1 or more repetitions:-->
            <mes:PartyId mes:type="urn:x12.org:IO5:01">from</mes:PartyId>
         </mes:From>
         <mes:To>
            <!--1 or more repetitions:-->
            <mes:PartyId mes:type="urn:x12.org:IO5:01">ws</mes:PartyId>
         </mes:To>
         <mes:CPAId>XXXX</mes:CPAId>
         <mes:ConversationId>XXXXXXXXXXXXX</mes:ConversationId>
         <mes:Service mes:type="sabreXML">sabreXML</mes:Service>
         <mes:Action>CreditVerificationLLSRQ</mes:Action>
         <mes:MessageData>
            <mes:MessageId>00000</mes:MessageId>
            <mes:Timestamp>233</mes:Timestamp>

         </mes:MessageData>

         <!--Zero or more repetitions:-->
         <mes:Description xml:lang="en-US">Testing</mes:Description>
         <!--You may enter ANY elements at this point-->
      </mes:MessageHeader>
   </soapenv:Header>
   <soapenv:Body>

   <CreditVerificationRQ Version="2.2.0" >
    <Credit>
        <CC_Info>
            <PaymentCard AirlineCode="F9" Code="123" ExpireDate="2017-04" Number="4111111111111111" />
        </CC_Info>
        <ItinTotalFare>
            <TotalFare Amount="565.36" CurrencyCode="USD" />
        </ItinTotalFare>
    </Credit>
</CreditVerificationRQ>
   </soapenv:Body>
</soapenv:Envelope>

我得到的响应如下错误:

<soap-env:Fault>
         <faultcode>soap-env:Client.Validation</faultcode>
         <faultstring>ERR.SWS.CLIENT.VALIDATION_FAILED</faultstring>
         <detail>
            <stl:ApplicationResults status="NotProcessed" xmlns:stl="http://services.sabre.com/STL/v01">
               <stl:Error timeStamp="2016-12-21T06:58:35-06:00" type="Validation">
                  <stl:SystemSpecificResults>
                     <stl:Message>cvc-elt.1: Cannot find the declaration of element 'CreditVerificationRQ'.</stl:Message>
                     <stl:ShortText>ERR.SWS.CLIENT.VALIDATION_FAILED</stl:ShortText>
                  </stl:SystemSpecificResults>
               </stl:Error>
            </stl:ApplicationResults>
         </detail>
      </soap-env:Fault>

您缺少命名空间声明。尝试在 RQ header 中添加 xmlns="http://webservices.sabre.com/sabreXML/2011/10"。