我有这个我正在处理的肥皂请求。我正在使用 wsdl 发送请求,当我从本地机器(开发环境)发送请求时一切都很好。问题是当我将同一个文件移动到实时服务器(Centos)时,我得到了Could not connect to host
错误。注意两台机器都在不同的网络上,并且位置相同,并且都安装了 php-soap 扩展。这是我的示例代码。$end_p = "http://example.com/service/services/test";
$client->__setLocation($end_p);
下面是安装在 live 机器上的 php 扩展列表:[root@localhost html]#
php -m [PHP Modules]
bz2,calendar,Core,ctype,curl,date,ereg,exif,fileinfo,filter,ftp,gette ,xt,gmp,hash,iconv,json,libxml,mhash,mysql,mysqli,openssl,pcntl,pcre,PDO,pdo_mysql,pdo_sqlite,Phar,readline,Reflection,session,shmop,SimpleXML, soap,sockets,SPL,sqlite3,standard,tokenizer,xml,zip,zlib
[Zend 模块]
问问题
144 次