cvs: presentations /slides/soap/examples example_server_small.php
| From: | Shane Caraveo | Date: | Tue, 22 Apr 2003 04:27:07 +0000 |
| Subject: | cvs: presentations /slides/soap/examples example_server_small.php | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-641@lists.php.net to get a copy of this message | ||
shane Tue Apr 22 00:27:07 2003 EDT
Added files:
/presentations/slides/soap/examples example_server_small.php
Log:
one more file
Index: presentations/slides/soap/examples/example_server_small.php
+++ presentations/slides/soap/examples/example_server_small.php
<?php
require_once 'SOAP/Value.php';
require_once 'SOAP/Fault.php';
require_once './example_types.php';
class SOAP_Example_Server {
var $__dispatch_map = array();
var $__typedef = array();
function SOAP_Example_Server() {
$this->__typedef['{http://soapinterop.org/xsd}SOAPStruct']
=
array(
'varString' => 'string',
'varInt' => 'int',
'varFloat' => 'float'
);
$this->__dispatch_map['echoStruct'] =
array(
'in' => array('inputStruct' =>
'{http://soapinterop.org/xsd}SOAPStruct'),
'out' => array('outputStruct' =>
'{http://soapinterop.org/xsd}SOAPStruct'),
);
}
function __dispatch($methodname) {
if (isset($this->__dispatch_map[$methodname]))
return $this->__dispatch_map[$methodname];
return NULL;
}
function echoStruct($inputStruct)
{
return $inputStruct->__to_soap('outputStruct');
}
}
?>