Posted by zubairkhan213 on 12/23/05 01:07
I am newbee to SOAP i downloaded the nusoap.php. and i tried the
example given at http://dietrich.ganx4.com/nusoap/faq.php but it dosent
work.
code:
server.php
require_once('nusoap.php');
$server = new soap_server;
$server->register('hello');
function hello ($name){
return "Hello $name.";
}
$server->service($HTTP_RAW_POST_DATA);
Accessing the service via a NuSOAP client:
client.php
require_once('nusoap.php');
$soapclient = new soapclient('http://yourdomain.com/hello.php');
echo $soapclient->call('hello',array('name'=>'dietrich'));
what might be the problem please help.
thanks in advance
zubair.
[Back to original message]
|