2016-12-21 6 views
0

신용 카드 승인 응답을 받기 위해 Sabre SOAP API 요청 인 CreditVerificationLLSRQ를 호출했습니다. 여기서 응답에 오류가 있습니다. 아무도 나를이 오류를 해결하기 위해 제안 할 수 있습니다. 내 요구는 다음입니다 :세이버 비누 API의 신용 카드 승인 받기

<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> 

답변

1

당신은 네임 스페이스 선언을 놓치고있어. RQ 헤더에 xmlns = "http://webservices.sabre.com/sabreXML/2011/10"을 추가하십시오.

+0

브루노 씨 정말 고마워요. 그것은 나를 위해 잘 작동하고 있습니다. –