Back to index

php5  5.3.10
round4_groupH_complex_rpcenc.inc
Go to the documentation of this file.
00001 <?php
00002 class SOAP_Interop_GroupH {
00003 
00004   function echoSOAPStructFault($input) {
00005     return new SoapFault("Server", "Fault in response to 'echoSOAPStructFault'.", null, $input, "ComplexFault");
00006   }
00007 
00008   function echoBaseStructFault($input) {
00009     return new SoapFault("Server", "Fault in response to 'echoBaseStructFault'.", null, $input, "ComplexFault");
00010   }
00011 
00012   function echoExtendedStructFault($input) {
00013     return new SoapFault("Server", "Fault in response to 'echoExtendedStructFault'.", null, $input, "ComplexFault");
00014   }
00015 
00016   function echoMultipleFaults1($which, $s1, $s2) {
00017        if ($which == 2) {
00018            return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, $s2, "ComplexFault2");
00019          } else {
00020            return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, array("soapStruct"=>$s1), "ComplexFault1");
00021          }
00022   }
00023 
00024   function echoMultipleFaults2($which, $s1, $s2, $s3) {
00025        if ($which == 2) {
00026            return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $s2, "ComplexFault2");
00027        } else if ($which == 3) {
00028            return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $s3, "ComplexFault3");
00029          } else {
00030            return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $s1, "ComplexFault1");
00031          }
00032   }
00033 }
00034 
00035 $server = new SoapServer(dirname(__FILE__)."/round4_groupH_complex_rpcenc.wsdl");
00036 $server->setClass("SOAP_Interop_GroupH");
00037 $server->handle($HTTP_RAW_POST_DATA);
00038 ?>