【发布时间】:2014-10-14 08:25:55
【问题描述】:
我正在尝试使用 SOAP 将 PHP 门户与 CRM(microsoft dynamics .NET)系统集成。
这是我的代码的一部分:
$client = new SoapClient("http://XX.XXX.X.XX:5050/host.svc?wsdl");
此行返回 2 个错误
Warninig: Message: SoapClient::SoapClient(http://80.248.5.35:5050/host.svc?wsdl): failed to open stream: Connection refused
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://XX.XXX.X.XX:5050/host.svc?wsdl' : failed to load external entity
在浏览器中打开链接并在我的本地计算机(localhost)中运行此代码也可以。
我试过file_get_contents("http://XX.XXX.X.XX:5050/host.svc?wsdl"); 但这会返回一条警告消息
Message: file_get_contents(http://80.248.5.35:5050/host.svc?wsdl): failed to open stream: Connection refused
我已经尝试了很多来自 stackoverflow 的解决方案。 如果有人可以帮助我解决这个问题或进一步了解情况,这是我第一次尝试这样的事情。谢谢
【问题讨论】:
标签: php .net soap integration