我正在尝试使用 PHP SOAP 类连接 Sabre API。
测试3.php
$client = new SoapClient('http://webservices.sabre.com/wsdl/sabreXML1.0.00/usg/SessionCreateRQ.wsdl',
varray( 'trace' => 1, 'exceptions' => true, 'cache_wsdl' => WSDL_CACHE_NONE ) );
$params = array(
'Username'=>'test@tester.com',
'Password'=>'passwrod'
'Organization'=>'Test',
'Domain'=> 'domain name'
);
$auth = array(
'UserName'=>'test@tester.com',
'Password'=>'password',
'SystemId'=> array('_'=>'DATA','Param'=>'PARAM'),
);
$header = new SoapHeader('https://webservices.sabre.com/websvc','Auth', $auth,false);
$client->__setSoapHeaders($header);
$returnwwww = $client->__soapCall('SessionCreateRQ',$params);
print_r($returnwwww);
我收到这个错误。“致命错误:未捕获的 SoapFault 异常:[soap-env:Client.InvalidAction] EbxmlMessage 中指定的操作不存在。”