 |
Samples
3. Objects
|
 |
| |
Description:
|
|
| |
This example shows how to make an Object be used as a SoapObject.
|
|
| |
|
|
| |
<? $myObject = new SoapObject("http://www.yourserver.com/object.php", "urn:Object"); echo $myObject->getData(); ?>
1
|
|
| |
|
|
| |
<? $server = new SoapServer("urn:Object"); $server->setClass('myObject'); $server->handle();
class myObject { function myObject() { $this->data = "hello from myObject"; } function getData() { return $this->data; } } ?>
1
|
|