I'm trying to make a soap connection with the web service mantis bug tracker for an personnal appli.
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();
}
}
What is wrong ?
$this->adresse = "http://localhost/mantisbt/api/soap/mantisconnect.php?wsdl"
when i go at this adress with the browser i see the correct XHTML file
it's this line where ther is an error : $client = new SoapClient($this->adresse);
Thanks for help.
i solved the problem. I dont know why but the error was "localhost". I put the IP adress and the script work fine.
$this->adresse = "http://192.x.x.x.x/mantisbt/api/soap/mantisconnect.php?wsdl"
thanks all for help :)