SoapUI first example - Sabre -
i trying make first simple soapui project work request valid session. referring https://developer.sabre.com/docs/read/soap_basics/getting_started soap ui example.
we have our username, password, ipcc , generate conversationid suggested in pdf. leave "default" domain.
no matter endpoint set (develpment, cert, prod) bad auth when try first "requestsessionsrq".
i missing basic can't figure out, have suggestion?
update:
this soap request:
<soap-env:envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:eb="http://www.ebxml.org/namespaces/messageheader" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsd="http://www.w3.org/1999/xmlschema"> <soap-env:header> <eb:messageheader soap-env:mustunderstand="1" eb:version="1.0"> <eb:from> <eb:partyid type="urn:x12.org:io5:01">ws_client</eb:partyid> </eb:from> <eb:to> <eb:partyid type="urn:x12.org:io5:01">ws_provider</eb:partyid> </eb:to> <eb:cpaid>${#project#organization}</eb:cpaid> <eb:conversationid>${#project#conversationid}_${=system.currenttimemillis()} </eb:conversationid> <eb:service eb:type="ota">sessioncreaterq</eb:service> <eb:action>sessioncreaterq</eb:action> <eb:messagedata> <eb:messageid>waynaut_id_${=system.currenttimemillis()}</eb:messageid> <eb:timestamp>${=import java.text.simpledateformat ; new simpledateformat("yyyy-mm-dd't'hh:mm:ss").format(new date(system.currenttimemillis() - 0 * 3600 * 1000))}z</eb:timestamp> <eb:timetolive>${=import java.text.simpledateformat ; new simpledateformat("yyyy-mm-dd't'hh:mm:ss").format(new date(system.currenttimemillis() -6 * 3600 * 1000))}z</eb:timetolive> </eb:messagedata> </eb:messageheader> <wsse:security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/12/utility"> <wsse:usernametoken> <wsse:username>${#project#username}</wsse:username> <wsse:password>${#project#password}</wsse:password> <organization>${#project#organization}</organization> <domain>default</domain> </wsse:usernametoken> </wsse:security> </soap-env:header> <soap-env:body> <sessioncreaterq> <pos> <source pseudocitycode="${#project#organization}"/> </pos> </sessioncreaterq> </soap-env:body> </soap-env:envelope> where tokens ${#project#organization} substituted our credentials.
and these endpoints i've tried: - https://sws3-sts.cert.sabre.com/ - https://sws3-crt.cert.sabre.com/ - https://webservices3.sabre.com/
i have no idea "partyid" should , left default values given in documentation example.
these 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">ws_provider</eb:partyid> </eb:from> <eb:to> <eb:partyid eb:type="uri">ws_client</eb:partyid> </eb:to> <eb:cpaid>p4ff</eb:cpaid> <eb:conversationid>test-conversation_1436438834114</eb:conversationid> <eb:service eb:type="ota">sessioncreaterq</eb:service> <eb:action>errorrs</eb:action> <eb:messagedata> <eb:messageid>472e975f-6a9b-4735-980e-c5ea4b4ae8e5@61</eb:messageid> <eb:timestamp>2015-07-09t10:47:12</eb:timestamp> <eb:reftomessageid>waynaut_id_1436438834114</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>
it might late now, in case - tried exact same request, , worked me (with own credentials).
it possible credentials locked (e.g.: due consecutive failed attempts session), can contact webservices.support@sabre.com validate credentials status.
make sure provide username , ipcc (organization) in communication.
Comments
Post a Comment