我正在嘗試與web服務螳螂bug跟蹤器爲個人應用做肥皂連接。與mantisbt的肥皂連接
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();
}
}
什麼是錯?
$這個 - >住址= 「HTTP://localhost/mantisbt/api/soap/mantisconnect.php WSDL」
當我走在這ADRESS與瀏覽器我看到正確的XHTML文件
這是這條線,其中有一個錯誤:$client = new SoapClient($this->adresse);
感謝您的幫助。
你說你看到的XHTML當你去到WSDL鏈接?這聽起來不對 - 一個wsdl鏈接不應該給XHTML;它應該提供WSDL格式的XML。 – SDC
當我去這個地址:「http://localhost/mantisbt/api/soap/mantisconnect.php?wsdl」我有這個網頁http://www.hostingpics.net/viewer.php?id=732454Sanstitre.png – LedZelkin