4
回答
soap调用api时报错
终于搞明白,存储TCO原来是这样算的>>>   
Warning : SoapClient::SoapClient(http://**/am5/soap/auth?wsdl) [ soapclient.soapclient ]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in  C:\Program Files (x86)\vtigercrm-5.4.0\apache\htdocs\vtigerCRM\xmlrpc\soap.php  on line  3

Warning: SoapClient::SoapClient() [soapclient.soapclient]: I/O warning : failed to load external entity "http://**/am5/soap/auth?wsdl" in C:\Program Files (x86)\vtigercrm-5.4.0\apache\htdocs\vtigerCRM\xmlrpc\soap.php on line 3

当我运行一下代码时出现以上错误:

<?php
$authnSvc = new SoapClient("http://localhost:8080/am5/soap/auth?wsdl");
$querySvc = new SoapClient("http://localhost:8080/am5/soap/query?wsdl");

echo '<pre>';
print_r($authnSvc->__getFunctions());
print_r($authnSvc->__getTypes());
print_r($querySvc->__getFunctions());
print_r($querySvc->__getTypes());
?>

求高手解答谢谢!

PHP
举报
gongsl
发帖于3年前 4回/342阅
顶部