Error from PEAR::SOAP
| From: | David Busby | Date: | Fri, 03 Jan 2003 19:24:37 +0000 |
| Subject: | Error from PEAR::SOAP | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-360@lists.php.net to get a copy of this message | ||
What does?
"method '{urn:xTICS_SOAP_Server\}put_data' not defined in service" mean? I
think I've defined the service. I don't have a WSDL file (if that's what I
need). From the talks about PEAR::SOAP I didn't think I needed a WSDL file
when making Static type clients.
//Server Code:
$ss = new SOAP_Server;
$sc = new xTICS_SOAP_Server();
$ss->addObjectMap($soapclass, 'urn:xTICS_SOAP_Server');
$ss->service($HTTP_RAW_POST_DATA);
class xTICS_SOAP_Server
{
function put_data($params)
{
// Build SQL
if (pg_exec($db, $sql)) return true;
else return false;
}
}
//Client Code
$sc = new SOAP_Client($xtics_node->soap_url);
$sc->trace = 1;
$options = array("namespace" => 'urn:xTICS_SOAP_Server', 'trace'
=> 1);
$params = array("id" => 345, "name" => "Something");
$ret = $sc->call("put_data", $params, $options);
print_r($ret);
David Busby
Systems Engineer
busby@pnts.com