Web service using PHP -
i trying create web service php
.
i follow below steps:-
step 1: download library http://sourceforge.net/projects/nusoap/.
step 2: run iis, go www root folder location.
step 3: create folder, it’s called "webservicesoap" www root folder.
step 4: paste "lib" folder inside www/webservicesoap/" location step 1 download files.
step 5: create 2 files “server.php” , “client.php” webservicesoap folder location.
when run server.php
on browser http://localhost/webservicesoap/server.php?wsdl shows:-
"this service not provide wsdl"
i guess lib not pointing correct folder..
more on shall try simple example
<?php require_once('lib/nusoap.php'); // make sure points correct path #require_once('nusoap.php'); // make sure path here , below url $client = new nusoap_client('your server url'); //make sure of path $result = $client->call('hello', array('name' => 'anuj')); print_r($result) ?>
it should display hello anuj
Comments
Post a Comment