Heim >Backend-Entwicklung >PHP-Tutorial >nusoap报错,查了很久也没解决,高手来看一看吧,谢谢
第一次用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吧