xml - Error CODE - UC SEG STATUS NOT ALLOWED -
i trying generate pnr. purpose used “enhancedairbookrq” air book “ota_airbookrq” , “ota_airpricerq” price.
the work flow given below.
(1) used “bargainfindermaxrq” search (2) used “enhancedairbookrq” air book , price iternary. (3) used “passengerdetailsrq” input passenger details (4) last want end transaction.
i tried many things did not able finish successfully. necessary fields missing in “enhancedairbookrq” book , price , how continue “passengerdetailsrq”.
//request “enhancedairbookrq” <soap-env:envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:xsd="http://www.w3.org/2001/xmlschema"> <soap-env:header> <m:messageheader xmlns:m="http://www.ebxml.org/namespaces/messageheader"> <m:from> <m:partyid type="urn:x12.org:io5:01">malikexpress.com</m:partyid> </m:from> <m:to> <m:partyid type="urn:x12.org:io5:01">http://webservices.sabre.com/sabrexml/2011/10</m:partyid> </m:to> <m:cpaid>xf08</m:cpaid> <m:conversationid>sws-test-tool-cid</m:conversationid> <m:service m:type="ota">air shopping service</m:service> <m:action>enhancedairbookrq</m:action> <m:messagedata> <m:messageid>mid:20001209-136453-2333@clientofsabre.com</m:messageid> <m:timestamp>2016-02-08t06:10:06z</m:timestamp> <m:timetolive>2016-02-08t06:10:06z</m:timetolive> </m:messagedata> <m:duplicateelimination /> <m:description>passenger details</m:description> </m:messageheader> <wsse:security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext"> <wsse:binarysecuritytoken valuetype="string" encodingtype="wsse:base64binary">shared/idl:icesess\/sessmgr:1\.0.idl/common/!icesms\/acpcrtd!icesmslb\/crt.lb!-3439407437566183902!431259!0</wsse:binarysecuritytoken> </wsse:security> </soap-env:header> <soap-env:body> <enhancedairbookrq xmlns="http://services.sabre.com/sp/eab/v3_2" version="3.2.0" ignoreonerror="false" haltonerror="false"> <ota_airbookrq> <haltonstatus code="uc" /> <haltonstatus code="ll" /> <haltonstatus code="ul" /> <haltonstatus code="un" /> <haltonstatus code="no" /> <haltonstatus code="hl" /> <origindestinationinformation> <flightsegment departuredatetime="2016-06-06t01:40:00" arrivaldatetime="2016-06-07t06:00:00" flightnumber="7731" numberinparty="1" resbookdesigcode="y" status="nn"> <destinationlocation locationcode="tpe" /> <marketingairline code="dl" flightnumber="3" /> <operatingairline code="dl" /> <originlocation locationcode="sfo" /> </flightsegment> </origindestinationinformation> </ota_airbookrq> <ota_airpricerq> <pricecomparison amountspecified="787.00" /> <pricerequestinformation futureticket="true" retain="true"> <optionalqualifiers></optionalqualifiers> </pricerequestinformation> </ota_airpricerq> <postprocessing ignoreafter="false"> <redisplayreservation waitinterval="2000" /> </postprocessing> <preprocessing ignorebefore="true" /> </enhancedairbookrq> </soap-env:body> </soap-env:envelope> //response “enhancedairbookrs” <soap-env:envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"> <soap-env:header> <eb:messageheader xmlns:eb="http://www.ebxml.org/namespaces/messageheader" eb:version="1.0" soap-env:mustunderstand="1"> <eb:from> <eb:partyid eb:type="uri">http://webservices.sabre.com/sabrexml/2011/10</eb:partyid> </eb:from> <eb:to> <eb:partyid eb:type="uri">malikexpress.com</eb:partyid> </eb:to> <eb:cpaid>df08</eb:cpaid> <eb:conversationid>sws-test-tool-cid</eb:conversationid> <eb:service eb:type="ota">air shopping service</eb:service> <eb:action>enhancedairbookrs</eb:action> <eb:messagedata> <eb:messageid>566216237794571760</eb:messageid> <eb:timestamp>2016-02-08t06:36:22</eb:timestamp> <eb:reftomessageid>mid:20001209-136453-2333@clientofsabre.com</eb:reftomessageid> </eb:messagedata> </eb:messageheader> <wsse:security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext"> <wsse:binarysecuritytoken valuetype="string" encodingtype="wsse:base64binary">shared/idl:icesess\/sessmgr:1\.0.idl/common/!icesms\/acpcrtd!icesmslb\/crt.lb!-3439407437566183902!431259!0</wsse:binarysecuritytoken> </wsse:security> </soap-env:header> <soap-env:body> <enhancedairbookrs xmlns="http://services.sabre.com/sp/eab/v3_2"> <ns2:applicationresults xmlns:ns2="http://services.sabre.com/stl_payload/v02_01" status="complete"> <ns2:success timestamp="2016-02-08t00:36:22.412-06:00" /> <ns2:warning type="businesslogic" timestamp="2016-02-08t00:36:20.139-06:00"> <ns2:systemspecificresults> <ns2:message code="warn.sws.host.error_in_response">code - uc seg status not allowed</ns2:message> <ns2:message code="0003">code - uc seg status not allowed</ns2:message> </ns2:systemspecificresults> </ns2:warning> </ns2:applicationresults> <ota_airbookrs> <origindestinationoption> <flightsegment arrivaldatetime="06-07t06:00" departuredatetime="06-06t01:40" flightnumber="7731" numberinparty="001" resbookdesigcode="y" status="nn" eticket="true"> <destinationlocation locationcode="tpe" /> <marketingairline code="dl" flightnumber="7731" /> <originlocation locationcode="sfo" /> </flightsegment> </origindestinationoption> </ota_airbookrs> <travelitineraryreadrs> <travelitinerary> <customerinfo /> <itineraryinfo> <reservationitems> <item rph="1"> <flightsegment airmilesflown="6469" arrivaldatetime="06-07t06:00" dayofweekind="1" departuredatetime="2016-06-06t01:40" elapsedtime="13.20" flightnumber="7731" numberinparty="01" resbookdesigcode="y" segmentnumber="0001" smokingallowed="false" specialmeal="false" status="uc" stopquantity="00" eticket="false"> <destinationlocation locationcode="tpe" terminal="terminal 2" terminalcode="2" /> <equipment airequiptype="77w" /> <marketingairline code="dl" flightnumber="7731" /> <meal code="b" /> <operatingairline code="ci" companyshortname="china airlines" /> <originlocation locationcode="sfo" terminal="international terminal" terminalcode="i" /> <supplierref id="dcdl" /> <text>operated china airlines</text> <updatedarrivaltime>06-07t06:00</updatedarrivaltime> <updateddeparturetime>06-06t01:40</updateddeparturetime> </flightsegment> </item> </reservationitems> </itineraryinfo> <itineraryref airextras="false" inhibitcode="u" partitionid="aa" primehostid="1b"> <header>currently displaying pnr owned sabre prime host</header> <header>rules , functionality prime host apply</header> <source pseudocitycode="xf08" /> </itineraryref> </travelitinerary> </travelitineraryreadrs> </enhancedairbookrs> </soap-env:body> </soap-env:envelope>
it know error in endtransaction, plus, have endtransaction in passengerdetails (inside postprocessing element).
there 5 basic things need have in pnr:
phone number
received from
itinerary
name
ticketing time limit
i recommend check on formatfinder link in order learn more pnrs, information above.
anyway, might unrelated, in enhancedairbook response provided see pricing failed because booked itinerary not confirmed. can see status="uc", means unable confirm. (for more on ucs or different status recommend check webservices support directly.)
Comments
Post a Comment