How to choose a port in SOAP PHP? I am developing a travel booking site with TravelPort as GDS. I just started looking at their WSDL, and I'm trying to use them to call my server with PHP. I can not do it. I know that the server is working, because if I process the request and send it via cURL, I get the answer that I expect, but using and adapting their own sample code (accept the confidentiality agreement, and then click "Code Example" to see), I won’t go anywhere.
Looking at the request that the PHP SOAP module generates, I think the problem is that it is using the wrong function. I don’t think I can reveal the whole WSDL, but here is an excerpt:
<service name="AirService">
<port name="AirRepriceSearchPort"
binding="tns:AirRepriceSearchBinding">
<soap:address
location="http://localhost:8080/kestrel/AirService" />
</port>
<port name="AirScheduleSearchPort"
binding="tns:AirScheduleSearchBinding">
<soap:address
location="http://localhost:8080/kestrel/AirService" />
</port>
<port name="AirLowFareSearchPort"
binding="tns:AirLowFareSearchBinding">
<soap:address
location="http://localhost:8080/kestrel/AirService" />
</port>
-, script AirReprice LowFareSearch. , WSDL "AirLowFareSearchPort" , .
:
, $client->AirLowFareSearchPort($data), ;
, $client->__getfunctions():
:
[0]=>
string(48) "AirRepriceRsp service(AirRepriceReq $parameters)"
[1]=>
string(56) "ScheduleSearchRsp service(ScheduleSearchReq $parameters)"
[2]=>
string(54) "LowFareSearchRsp service(LowFareSearchReq $parameters)"
[3]=>
string(66) "LowFareSearchAsynchRsp service(LowFareSearchAsynchReq $parameters)"
, "" "". , .
. , !
UPDATE:
, . PHP Web Services. SOAP. .