function Id find_part_id(Description, Model, Year)But you don't want to write a lot of complicated networking code to handle such a request. RPC is an answer to this problem.
function hello($name) {
return "Hello, $name!";
}
The server:<?php
require_once('nusoap.php');
$parameters = array('name'=>'greg');
$soapclient = new soapclient('http://ieng9.ucsd.edu/php-cs134f/.../server.php');
$result = $soapclient->call('hello',$parameters);
print("$result\n");
?>
When the client is executed, it will connect to the server and communicate using the SOAP protocol. The server will service it's request, and return a value using SOAP.<?php
require_once('nusoap.php');
$s = new soap_server;
$s->register('hello');
function hello($name){
// optionally catch an error and return a fault
if($name == ''){
return new soap_fault('Client','','Must supply a valid name.');
}
return "hello $name!";
}
$s->service($HTTP_RAW_POST_DATA);
?>