0
私はWebサービスをPHPで呼び出そうとしています。 PHPにそれが正常に動作します5.3.0が、私は自分のWebサービスを実行するとき、それは今5.2.0SOAP WSDLエラー
私はこのエラーを取得していて動作している必要があります。 [WSDL]はSOAP-ERROR:解析WSDLは:https://xx.xx.xx.xx:port/webdialer/services/WebdialerSoapService?wsdlからロードできませんでした。 '
ネットallreadyを検索したところ、バグかもしれません。私は彼らが示唆したことをしましたが、スティルはうまくいかないでしょう。
これは私のコードです:私は間違っ
function MakeCall($linenumber, $destinationNumber, $deviceName){
/*try {
if([email protected]_get_contents($wsdl)) {
throw new SoapFault('Server', 'No WSDL found at ' . $wsdl);
}*/
try{
$soap = new SoapClient("https://xx.xx.xx.xx:port/webdialer/services/WebdialerSoapService?wsdl",array(
"uri" => "urn:WebdialerSoap",
"trace" => 1,
"exceptions" => 1));
$rs2 = $soap->makeCallSoap(
array(
"userID"=>'xx',
"password"=>'xx'
),
$destinationNumber, // Destination number to be called
array(
'user'=>'user',
'deviceName'=>$deviceName,
'lineNumber'=>$linenumber,
'supportEM'=>false,
'locale'=>'English',
'dontAutoClose'=>true,
'dontShowCallConf'=>true
)
);
return $rs2;
} catch(SoapFault $e) {
echo $e;
}
}
何をしているのですか?
stupid me!それが私の問題を解決しました。ローカルマシンでは有効にしましたが、私のサーバーでは有効にしませんでした。ありがとうCatalin! –