繁体   English   中英

与螳螂的肥皂连接

[英]Soap connection with mantisbt

我正在尝试与一个个人应用程序的Web服务螳螂错误跟踪器建立连接。

  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);

感谢帮助。

正确的入口点是http://localhost/mantisbt/api/soap/mantisconnect.php (省略了?wsdl部分)。

我解决了这个问题。 我不知道为什么,但是错误是“ localhost”。 我把IP地址和脚本工作得很好。

$this->adresse = "http://192.x.x.x.x/mantisbt/api/soap/mantisconnect.php?wsdl" 

谢谢大家的帮助:)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM