| // +----------------------------------------------------------------------+ class SOAP_Interop_GroupC { var $method_namespace = 'http://soapinterop.org/echoheader/'; function echoMeStringRequest($string) { return new SoapHeader($this->method_namespace, "echoMeStringResponse", $string); } function echoMeStructRequest($struct) { return new SoapHeader($this->method_namespace, "echoMeStructResponse", $struct); } function echoVoid() { } } $server = new SoapServer((isset($_SERVER['HTTPS'])?"https://":"http://").$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/echoheadersvc.wsdl.php"); $server->setClass("SOAP_Interop_GroupC"); $server->handle(); ?>