有人知道如何解决错误(见标题)?
我的代码:
$wsdl = "https://...";
$client = new SoapClient($wsdl, array('trace'=>true, 'login'=>"test",'password'=>"test",
'local_cert' => "C:\xampp1.8.2-2\tomcat\conf\.cer",
'passphrase' => "test"));
$result = $client->findUser($params);
答案 0 :(得分:0)
您需要使用反斜杠转义反斜杠,以获得local_cert
这样做
$client = new SoapClient($wsdl, array('trace'=>true, 'login'=>"test",'password'=>"test",
'local_cert' => "C:\\xampp1.8.2-2\\tomcat\\conf\\.cer",
'passphrase' => "test"));