简体   繁体   中英

Travelport uAPI php SoapClient

I need to develop a PHP web based application using Travelport uAPI. I'm able to connect to the webservice using the function curl_init() writing all xml request, but I'm stuck trying to do it with SoapClient class. I'm using this example and doesn't work:

http://demo.travelportuniversalapi.com/Home/SampleCode

I don't know what I'm doing wrong. Anyone knows a working sample code/project in PHP using SoapClient class? I've searched in the web, but I couldn't find anything in PHP.

(Answered in a question edit. Converted to a community wiki answer. See What is the appropriate action when the answer to a question is added to the question itself? )

The OP wrote:

At last the way to reach my solution has been using the Travelport test tool writing my xml requests and passing a string containing the xml.

Needed for authentication:

 $this->credentials["login"]=$user; $this->credentials["password"]=$pass; $this->credentials["traceid"]=$traceid; (branchcode)

Then I create the soap client:

 $client = new SoapClient("galileo/air_v20_0/Air.wsdl", $this->credentials); $rsp=$client->__doRequest($this->request, $this->credentials['location'], $this->credentials['soapaction'], $this->credentials['soap_version']);

And this covers my needs :)

Now I'm trying to pass the request info using SoapClient and WSDL functions in this post WSDL functions with the same name. How to choose one?

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