| // +----------------------------------------------------------------------+ // // $Id: server_Round3GroupDImport1.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_GroupDImport1 { function echoString($inputString) { return new SOAP_Value('Result', 'string', $inputString); } } // http://www.whitemesa.com/r3/interop3.html // http://www.whitemesa.com/r3/plan.html $groupd = new SOAP_Interop_GroupDImport1(); $server = new SOAP_Server(); $server->_auto_translation = true; $server->addObjectMap($groupd, 'http://soapinterop/echoString/'); $server->bind('http://localhost/soap_interop/wsdl/import1.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 = ' Hello World '; $server->service($test, '', true); }