第一次用nusoap,出错,查了很久了还是没解决问题,请教高手。
003.php如下:
<?php require_once('lib/nusoap.php'); function hello(){ return 'Hello World'; } $server = new soap_server(); $server->register('hello'); $server->service($HTTP_RAW_POST_DATA);<?php require_once('lib/nusoap.php'); $wsdl = 'http://www.127.0.0.1/eroom/003.php'; $client = new nusoap_client($wsdl); $res = $client->call('hello'); echo $res; if($client->getError()){ echo $client->getError(); }HTTP Error: Couldn't open socket connection to server http://www.127.0.0.1/eroom/003.php prior to connect(). This is often a problem looking up the host name.
你确定网址准确?
http://www.127.0.0.1/eroom/003.php
??地址有??。
??是127.0.0.1吧
你确定网址准确?
http://www.127.0.0.1/eroom/003.php
??地址有??。
??是127.0.0.1吧
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号