What exactly happens when I call a web service method using PHP::SOAP?
Posted
by Bedwyr Humphreys
on Stack Overflow
See other posts from Stack Overflow
or by Bedwyr Humphreys
Published on 2010-04-02T18:39:12Z
Indexed on
2010/04/02
18:43 UTC
Read the original article
Hit count: 337
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.
© Stack Overflow or respective owner