Port to PEAR and more | // | Authors: Dietrich Ayala Original Author | // +----------------------------------------------------------------------+ class SOAP_Interop_Base { function echoString($inputString) { return $inputString; } function echoStringArray($inputStringArray) { return $inputStringArray; } function echoInteger($inputInteger) { return $inputInteger; } function echoIntegerArray($inputIntegerArray) { return $inputIntegerArray; } function echoFloat($inputFloat) { return $inputFloat; } function echoFloatArray($inputFloatArray) { return $inputFloatArray; } function echoStruct($inputStruct) { return $inputStruct; } function echoStructArray($inputStructArray) { return $inputStructArray; } function echoVoid() { return NULL; } function echoBase64($b_encoded) { return $b_encoded; } function echoDate($timeInstant) { return $timeInstant; } function echoHexBinary($hb) { return $hb; } function echoDecimal($dec) { return $dec; } function echoBoolean($boolean) { return $boolean; } function echoMimeAttachment($stuff) { return new SOAP_Attachment('return','application/octet-stream',NULL,$stuff); } } $server = new SoapServer((isset($_SERVER['HTTPS'])?"https://":"http://").$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/interop.wsdl.php"); $server->setClass("SOAP_Interop_Base"); $server->handle(); ?>