| // +----------------------------------------------------------------------+ // // $Id: server_Round3GroupDCompound1.php,v 1.5 2007/01/22 14:53:22 yunosh Exp $ // require_once 'SOAP/Server.php'; require_once 'params_classes.php'; // http://www.whitemesa.com/r3/interop3.html // http://www.whitemesa.com/r3/plan.html class SOAP_Interop_GroupDCompound1 { function echoPerson($person) { return $person->__to_soap('result_Person'); } function echoDocument($document) { $ns = '{http://soapinterop.org/xsd}'; return new SOAP_Value($ns . 'result_Document', $ns . 'x_Document', $document); } } // http://www.whitemesa.com/r3/interop3.html // http://www.whitemesa.com/r3/plan.html $options = array('use' => 'literal', 'style' => 'document'); $groupd = new SOAP_Interop_GroupDCompound1(); $server = new SOAP_Server($options); $server->_auto_translation = true; $server->addObjectMap($groupd, 'http://soapinterop/'); $server->addObjectMap($groupd, 'http://soapinterop.org/xsd'); $server->bind('http://localhost/soap_interop/wsdl/compound1.wsdl.php'); if (isset($_SERVER['SERVER_NAME'])) { $server->service(isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : null); } else { // allows command line testing of specific request $test = ' Test Document Here '; $server->service($test, '', true); }