What exactly happens when I call a web service method using PHP::SOAP?
- by Bedwyr Humphreys
Say I have a simple client/server scenario with one method:
// client code
$client = new SoapCLient("service.wsdl");
$result = $client.getPi();
...
// server code
function getPi(){
return 3.141;
}
$server = new SoapServer("service.wsdl");
$server.addFunction("getPi");
$server.handle();
Am I right in thinking that when the client makes a call to the getPi() method the addfunction() gets called everytime? Is this really how PHP SOAP web services work? Or is there some caching going on?
Thanks.