开发者社区> 问答> 正文

soap调用api时报错?报错

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

求高手解答谢谢!

展开
收起
爱吃鱼的程序员 2020-06-15 19:26:52 663 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    求解答!该链接:<spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:22px;background-color:#FFFFFF;">http://localhost:8080/am5/soap/query?wsdl能正常访问吗?<divclass='ref'>

    引用来自“yunfound”的评论

    该链接:<spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:22px;background-color:#FFFFFF;">http://localhost:8080/am5/soap/query?wsdl能正常访问吗?<divclass='ref'><divclass='ref'>

    引用来自“yunfound”的评论

    该链接:<spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:22px;background-color:#FFFFFF;">http://localhost:8080/am5/soap/query?wsdl能正常访问吗?

    2020-06-15 19:27:08
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Spring Boot2.0实战Redis分布式缓存 立即下载
CUDA MATH API 立即下载
API PLAYBOOK 立即下载