dqz86173 2014-08-18 14:19
浏览 136

SOAP-ERROR:解析WSDL:无法从'http://10.31.1.106:8080/gss-0.1/FileUtilities?wsdl'加载

I hope someone can help me because I am looking for the solution since 2 working days...

I have a php website which need to request a distant webservice. When I try it on my computer (Win7 + WAMP), it works well. When I try it on the webserver (CentOs6), it return me the following error :

SOAP-ERROR: Parsing WSDL: Couldn't load from
'http://ip_address:8080/gss-0.1/FileUtilities?wsdl' : failed to load
external entity "http://ip_address:8080/gss-0.1/FileUtilities?wsdl"

NB: the webservice is on the same network of my webserver (I do not use the same IP/port).

I know that the WSDL is accessible from the webserver because it is accessible using curl linux function.

curl http://ip_address:8080

My php code is:

<?php
$wsdl = "http://ip_address:8080/gss-0.1/FileUtilities?wsdl";

try{
        $client = new SoapClient($wsdl ,array('trace' => 1,
                                        'exceptions'=> 1,
                                        'cache_wsdl' => WSDL_CACHE_NONE
                                        ));
}
catch(Exception $e) {
        echo $e->getMessage();
}?>
  • 写回答

2条回答 默认 最新

  • doujiao4705 2014-08-18 15:38
    关注

    If its not firewalled there at your web server and its working in your local but not at your webserver(CentOS). its might be a case of different PHP version and php.ini settings. Can you compare your PHP version and those below extensions in your CentOs server with your WAMP at local.

    S0AP, php_openssI, openssI, curI;

    评论

报告相同问题?

悬赏问题

  • ¥15 不同尺寸货物如何寻找合适的包装箱型谱
  • ¥15 求解 yolo算法问题
  • ¥15 虚拟机打包apk出现错误
  • ¥15 用visual studi code完成html页面
  • ¥15 聚类分析或者python进行数据分析
  • ¥15 三菱伺服电机按启动按钮有使能但不动作
  • ¥15 js,页面2返回页面1时定位进入的设备
  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝