Re: Simple Nusoap Problem
Thanks. I did include two arguments to the function. I even commented
out the faults. Here's what I have. I swear this is the toughest time
I've had with a simple program.
<?php
require_once('nusoap.php');
function hello($name1, $name2){
// optionally catch an error and return a fault
/*if($name1 == ''){
return new soap_fault('Client','','Must supply a valid name.');
}
if($name2 == ''){
return new soap_fault('Client','','Must supply a valid name.');
}*/
$res_str = "hello " . $name1 . " " . $name2;
return $res_str;
}
$s = new soap_server;
$s->register('hello');
$s->service($HTTP_RAW_POST_DATA);
?>
Timo Schäfer <timo.schaefer@media-art.net> wrote in message news:<c1j79l$l6d$07$1@news.t-online.com>...
> hi larry,
>
> the soap client is looking fine.
>
> please make sure that the method of the soap server is taking more then one parameter.
>
> require_once "nusoap.php";
>
> function hello($arg1, $arg2)
>
> {
>
> $res = $arg1 . $arg2;
>
> return $res;
>
> }
>
> $soap = new soap_server;
>
> $soap->register("args");
>
> $soap->service($HTTP_RAW_POST_DATA);
>
>
> cheers,
> moe.
>
>
> ><?php
> >
> >require_once('nusoap.php');
> >$parameters = array('name1'=>$_GET['name1'], 'name2'=>$_GET['name2]);
> >$soapclient = new soapclient('http://www.myserver.net/soapserverhello.php');
> >echo $soapclient->call('hello', $parameters);
> >
> >?>
> >
> >
|