php - Sabre EnhancedAirBookRQ Upgrade from 3.1.0 to 3.8.0 -
i upgrading our sabre enhancedairbookrq v3.1.0 3.8.0, have checked sabre api docs, couldn't find changes in request structure. when call soap api using php curl version changed v3.8.0, curl error 22
request
<?xml version="1.0" encoding="utf-8"?> <enhancedairbookrq xmlns="http://services.sabre.com/sp/eab/v3_1" version="3.8.0" ignoreonerror="true" haltonerror="true"> <ota_airbookrq> <haltonstatus code="no" /> <haltonstatus code="nn" /> <haltonstatus code="uc" /> <haltonstatus code="us" /> <origindestinationinformation> <flightsegment flightnumber="9862" departuredatetime="2017-08-28t02:10:00" numberinparty="1" status="nn" resbookdesigcode="b"> <destinationlocation locationcode="pvg" /> <equipment airequiptype="73h" /> <marketingairline code="mu" flightnumber="9862" /> <operatingairline code="fm" /> <originlocation locationcode="kul" /> </flightsegment> </origindestinationinformation> <redisplayreservation numattempts="2" waitinterval="6000" /> </ota_airbookrq> <ota_airpricerq> <pricerequestinformation retain="true"> <optionalqualifiers> <pricingqualifiers> <passengertype code="adt" quantity="1" /> </pricingqualifiers> </optionalqualifiers> </pricerequestinformation> </ota_airpricerq> <postprocessing ignoreafter="false"> <redisplayreservation /> </postprocessing> </enhancedairbookrq>
can body tell me whats wrong request?
i forgot update version number in xmlns attribute of enhancedairbookrq element.
xmlns="http://services.sabre.com/sp/eab/v3_1"
to
xmlns="http://services.sabre.com/sp/eab/v3_8"
updating correct version fixed problem.
Comments
Post a Comment