Back to index

php5  5.3.10
server_round2_base.php
Go to the documentation of this file.
00001 <?
00002 //
00003 // +----------------------------------------------------------------------+
00004 // | PHP Version 4                                                        |
00005 // +----------------------------------------------------------------------+
00006 // | Copyright (c) 1997-2003 The PHP Group                                |
00007 // +----------------------------------------------------------------------+
00008 // | This source file is subject to version 2.02 of the PHP license,      |
00009 // | that is bundled with this package in the file LICENSE, and is        |
00010 // | available through the world-wide-web at                              |
00011 // | http://www.php.net/license/2_02.txt.                                 |
00012 // | If you did not receive a copy of the PHP license and are unable to   |
00013 // | obtain it through the world-wide-web, please send a note to          |
00014 // | license@php.net so we can mail you a copy immediately.               |
00015 // +----------------------------------------------------------------------+
00016 // | Authors: Shane Caraveo <Shane@Caraveo.com>   Port to PEAR and more   |
00017 // | Authors: Dietrich Ayala <dietrich@ganx4.com> Original Author         |
00018 // +----------------------------------------------------------------------+
00019 //
00020 // $Id: server_round2_base.php 242949 2007-09-26 15:44:16Z cvs2svn $
00021 //
00022 
00023 class SOAP_Interop_Base {
00024 
00025     function echoString($inputString)
00026     {
00027       return $inputString;
00028     }
00029 
00030     function echoStringArray($inputStringArray)
00031     {
00032       return $inputStringArray;
00033     }
00034 
00035 
00036     function echoInteger($inputInteger)
00037     {
00038       return $inputInteger;
00039     }
00040 
00041     function echoIntegerArray($inputIntegerArray)
00042     {
00043       return $inputIntegerArray;
00044     }
00045 
00046     function echoFloat($inputFloat)
00047     {
00048       return $inputFloat;
00049     }
00050 
00051     function echoFloatArray($inputFloatArray)
00052     {
00053       return $inputFloatArray;
00054     }
00055 
00056     function echoStruct($inputStruct)
00057     {
00058       return $inputStruct;
00059     }
00060 
00061     function echoStructArray($inputStructArray)
00062     {
00063       return $inputStructArray;
00064     }
00065 
00066     function echoVoid()
00067     {
00068       return NULL;
00069     }
00070 
00071     function echoBase64($b_encoded)
00072     {
00073       return $b_encoded;
00074     }
00075 
00076     function echoDate($timeInstant)
00077     {
00078       return $timeInstant;
00079     }
00080 
00081     function echoHexBinary($hb)
00082     {
00083       return $hb;
00084     }
00085 
00086     function echoDecimal($dec)
00087     {
00088       return $dec;
00089     }
00090 
00091     function echoBoolean($boolean)
00092     {
00093       return $boolean;
00094     }
00095 
00096     function echoMimeAttachment($stuff)
00097     {
00098         return new SOAP_Attachment('return','application/octet-stream',NULL,$stuff);
00099     }
00100 }
00101 
00102 $server = new SoapServer((isset($_SERVER['HTTPS'])?"https://":"http://").$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/interop.wsdl.php");
00103 $server->setClass("SOAP_Interop_Base");
00104 $server->handle();
00105 ?>