Back to index

php5  5.3.10
round4_groupH_simple_rpcenc.inc
Go to the documentation of this file.
00001 <?php
00002 class SOAP_Interop_GroupH {
00003 
00004   function echoEmptyFault() {
00005     return new SoapFault("Server", "Fault in response to 'echoEmptyFault'.", null, null, "SimpleFault");
00006   }
00007 
00008   function echoStringFault($input) {
00009     return new SoapFault("Server", "Fault in response to 'echoStringFault'.", null, $input, "SimpleFault");
00010   }
00011 
00012   function echoIntArrayFault($input) {
00013     return new SoapFault("Server", "Fault in response to 'echoIntArrayFault'.", null, $input, "SimpleFault");
00014   }
00015 
00016   function echoMultipleFaults1($param, $string, $floats) {
00017        if ($param == 2) {
00018            return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, $string, "SimpleFault2");
00019        } else if ($param == 3) {
00020            return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, $floats, "SimpleFault3");
00021        } else {
00022            return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, null, "SimpleFault1");
00023          }
00024   }
00025 
00026   function echoMultipleFaults2($param, $string, $float, $strings) {
00027        if ($param == 2) {
00028            return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $string, "SimpleFault1");
00029        } else if ($param == 3) {
00030            return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $strings, "SimpleFault3");
00031        } else {
00032            return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $float, "SimpleFault2");
00033          }
00034   }
00035 
00036   function echoMultipleFaults3($param, $param1, $param2) {
00037        if ($param == 2) {
00038            return new SoapFault("Server", "Fault in response to 'echoMultipleFaults3'.", null, $param2, "SimpleFault2");
00039          } else {
00040            return new SoapFault("Server", "Fault in response to 'echoMultipleFaults3'.", null, $param1, "SimpleFault1");
00041          }
00042   }
00043 
00044   function echoMultipleFaults4($param, $int, $enum) {
00045        if ($param == 2) {
00046            return new SoapFault("Server", "Fault in response to 'echoMultipleFaults4'.", null, $enum, "SimpleFault2");
00047          } else {
00048            return new SoapFault("Server", "Fault in response to 'echoMultipleFaults4'.", null, $int, "SimpleFault1");
00049          }
00050   }
00051 }
00052 
00053 $server = new SoapServer(dirname(__FILE__)."/round4_groupH_simple_rpcenc.wsdl");
00054 $server->setClass("SOAP_Interop_GroupH");
00055 $server->handle($HTTP_RAW_POST_DATA);
00056 ?>