Travelport / travelport-uapi-tutorial-php

The travelport-uapi-tutorial-php is a PHP project for Universal API that will help you connect and code a standard workflow including Air, Vehicle, and Hotel.
35 stars 47 forks source link

Processing! Please wait! Fatal error: Error occurred request/response processing! in E:\xampp\htdocs\Air\phpSample_Air.php on line 100 #90

Open tiimka opened 7 years ago

tiimka commented 7 years ago

Dear All, We are very happy to join the users of Travelport's API , we are facing an error "Processing! Please wait! Fatal error: Error occurred request/response processing! in E:\xampp\htdocs\Air\phpSample_Air.php on line 100" We have updated the account credentials and also the future departure date could you please help us. bellow is the code in file. <?php /*

vivekjyotipramanik commented 7 years ago

Hi tiimka,

The URL being used is incorrect for AirAvailability. The URL you are using is a UtilService url and we have to use AirService. Please find below the corrected URL. Could you please try with this and let us know how it goes. Thanks.

$soap_do = curl_init ("https://americas.universal-api.pp.travelport.com/B2BGateway/connect/uAPI/AirService");

tiimka commented 7 years ago

Hello vivekjyotipramanik , thanks for your prompt response , but unfortunately is not working yet.

vivekjyotipramanik commented 7 years ago

Hi tiimka,

Could you please share the code after updating the endpoint URL to AirService. Also, Could you please try with http://demo.travelportuniversalapi.com/ using your credentials or try in SOAP UI using your credentials if the credentials are fine and is working. Please let us know how it goes. Thanks.

tiimka commented 7 years ago

The updated code is here <?php /*

tiimka commented 7 years ago

By connecting this URL (https://emea.universal-api.pp.travelport.com/B2BGateway/connect/uAPI/) and passing our credentials we receive this error Error 500: java.lang.StringIndexOutOfBoundsException

vivekjyotipramanik commented 7 years ago

Hi tiimka,

The URL is incomplete, it should append the service, like, https://emea.universal-api.pp.travelport.com/B2BGateway/connect/uAPI/AirService. Also, looks like you are trying through browser, it will need to e test with SOAP UI. Could you please check with demosite as well using your credentials. Thanks.

tiimka commented 7 years ago

Sorry vivekjyotipramanik , The link is what we received from Welcome email and even if I Used this link shows the same error https://emea.universal-api.pp.travelport.com/B2BGateway/connect/uAPI/AirService.

vivekjyotipramanik commented 7 years ago

Hi tiimka,

Could you please confirm where you are using the link. The link will not work from browser, it has to be used from SOAP UI or code only. Could you please send the credentials in my email. I will check the credentials if they are fine. Thanks.

vivekjyotipramanik commented 7 years ago

Hi tiimka,

We can also schedule an webex to see and resolve the issue. Please let me know your timezone and your preferred time and date and we will schedule the meeting. Thanks.

tiimka commented 7 years ago

@vivekjyotipramanik Hello vivekjyotipramanik I am testing if this message is public or private to you only.

Best

vivekjyotipramanik commented 7 years ago

...

tiimka commented 6 years ago

Sent an email

tiimka commented 6 years ago

Hello clicking this link https://emea.universal-api.pp.travelport.com/B2BGateway/connect/uAPI/AirService and entering the credentials I receive this error Error 500: java.lang.StringIndexOutOfBoundsException

vivekjyotipramanik commented 6 years ago

Hi tiimka,

Could you please confirm where you are running the xml request and the xml request which you are using. Just clicking on the link will not work, this is a endpoint URL and not a borwser URL. We haev to use tools like postman or soap ui and use the endpoint and send request xml in postman or soap ui to get the proper response. Please find below the link with all the steps. Please let us know how it goes. Thanks.

https://support.travelport.com/webhelp/uapi/uAPI.htm#Getting_Started/Sending_Requests/Sending_Requests.htm%3FTocPath%3DGetting%2520Started%7CSending%2520Requests%7C_____0

https://support.travelport.com/webhelp/uapi/uAPI.htm#Getting_Started/Sending_Requests/testing_application_connectivity.htm%3FTocPath%3DGetting%2520Started%7CSending%2520Requests%7C_____2

https://support.travelport.com/webhelp/uapi/uAPI.htm#Getting_Started/Sending_Requests/Sample_Request_and_Response.htm%3FTocPath%3DGetting%2520Started%7CSending%2520Requests%7C_____3