我正在尝试与个人应用程序的网络服务螳螂错误跟踪器建立肥皂连接。
public function issues_get($username, $password) {
try {
$client = new SoapClient($this->adresse);
$response = $client->mc_filter_get_issues($username, $password, $this->projectId, $this->ersFilter, 0, 0);
$response = convert::object2array($response);
return $response;
}
catch (SoapFault $e){
echo $e->faultcode;
//$e->getMessage();
}
}
怎么了 ?
$this->adresse = "http://localhost/mantisbt/api/soap/mantisconnect.php?wsdl"
当我用浏览器访问这个地址时,我看到了正确的 XHTML 文件
这是有错误的这一行:$client = new SoapClient($this->adresse);
感谢帮助。