简体   繁体   中英

Sabre java SOAP client

I am trying to develop a java SOAP based client integrating the Sabre( https://developer.sabre.com ) hotels booking services. When i try to execute the test services in SOAPUI, it is always failing and getting the following response.

<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
   <soap-env:Header>
      <eb:MessageHeader eb:version="1.0" soap-env:mustUnderstand="1" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader">
         <eb:From>
            <eb:PartyId eb:type="URI">123123</eb:PartyId>
         </eb:From>
         <eb:To>
            <eb:PartyId eb:type="URI">999999</eb:PartyId>
         </eb:To>
         <eb:CPAId>ipcc</eb:CPAId>
         <eb:ConversationId>conversationID</eb:ConversationId>
         <eb:Service eb:type="OTA">SessionCreateRQ</eb:Service>
         <eb:Action>ErrorRS</eb:Action>
         <eb:MessageData>
            <eb:MessageId>677671ee-ed04-4bf2-bfcb-e12c54e6aad4@19</eb:MessageId>
            <eb:Timestamp>2016-01-30T16:50:15</eb:Timestamp>
            <eb:RefToMessageId>1000</eb:RefToMessageId>
         </eb:MessageData>
      </eb:MessageHeader>
      <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext"/>
   </soap-env:Header>
   <soap-env:Body>
      <soap-env:Fault>
         <faultcode>soap-env:Client.AuthenticationFailed</faultcode>
         <faultstring>Authentication failed</faultstring>
         <detail>
            <StackTrace>com.sabre.universalservices.base.security.AuthenticationException: errors.authentication.USG_AUTHENTICATION_FAILED</StackTrace>
         </detail>
      </soap-env:Fault>
   </soap-env:Body>
</soap-env:Envelope>

Can anyone able to guide me on this?

Regards, Mayuran

Looks like your credentials (username, password, organization, domain) submitted in your call to SessionCreateRQ may not be correct.

Make sure the values are correct and you are pointing to the appropriate environment (you normally get credentials for the customer acceptance testing environment at first: https://developer.sabre.com/docs/read/soap_basics/environments )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM