What I thought it was: a process that was instantiated on the server once and responded to requests on a port. For example if my PHP application uses a 5000 line file, it would load that file into memory once while a traditional PHP app would load that file for each client request.
According to this SOAP server example:
Expand|Select|Wrap|Line Numbers
- <?php
- # HelloServer.php
- # Copyright (c) 2005 by Dr. Herong Yang, http://www.herongyang.com/
- #
- function hello($someone) {
- return "Hello " . $someone . "!";
- }
- $server = new SoapServer(null,array('uri' => "urn://www.herong.home/res"));
- $server->addFunction("hello");
- $server->handle();
- ?>
It looks like you just call that file through a soap client. In other words: if my hello() function loaded a large file, every soap client that connected to it will load it for itself?
I'd love to hear some clarifications from anyone that has worked with SOAP server before.