首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Sabre Soap API中获得信用卡审批

在Sabre Soap API中获得信用卡审批
EN

Stack Overflow用户
提问于 2016-12-21 22:49:00
回答 0查看 315关注 0票数 0

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

代码语言:javascript
复制
<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>

我得到的响应如下所示,错误如下:

代码语言:javascript
复制
<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>
EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41265545

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档