1<?php
2class SOAP_Interop_GroupH {
3
4  function echoEmptyFault() {
5    return new SoapFault("Server", "Fault in response to 'echoEmptyFault'.", null, null, "SimpleFault");
6  }
7
8  function echoStringFault($input) {
9    return new SoapFault("Server", "Fault in response to 'echoStringFault'.", null, $input, "SimpleFault");
10  }
11
12  function echoIntArrayFault($input) {
13    return new SoapFault("Server", "Fault in response to 'echoIntArrayFault'.", null, $input, "SimpleFault");
14  }
15
16  function echoMultipleFaults1($param, $string, $floats) {
17    if ($param == 2) {
18        return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, $string, "SimpleFault2");
19    } else if ($param == 3) {
20        return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, $floats, "SimpleFault3");
21    } else {
22        return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, null, "SimpleFault1");
23      }
24  }
25
26  function echoMultipleFaults2($param, $string, $float, $strings) {
27    if ($param == 2) {
28        return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $string, "SimpleFault1");
29    } else if ($param == 3) {
30        return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $strings, "SimpleFault3");
31    } else {
32        return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $float, "SimpleFault2");
33      }
34  }
35
36  function echoMultipleFaults3($param, $param1, $param2) {
37    if ($param == 2) {
38        return new SoapFault("Server", "Fault in response to 'echoMultipleFaults3'.", null, $param2, "SimpleFault2");
39      } else {
40        return new SoapFault("Server", "Fault in response to 'echoMultipleFaults3'.", null, $param1, "SimpleFault1");
41      }
42  }
43
44  function echoMultipleFaults4($param, $int, $enum) {
45    if ($param == 2) {
46        return new SoapFault("Server", "Fault in response to 'echoMultipleFaults4'.", null, $enum, "SimpleFault2");
47      } else {
48        return new SoapFault("Server", "Fault in response to 'echoMultipleFaults4'.", null, $int, "SimpleFault1");
49      }
50  }
51}
52
53$server = new SoapServer(dirname(__FILE__)."/round4_groupH_simple_rpcenc.wsdl");
54$server->setClass("SOAP_Interop_GroupH");
55$server->handle($HTTP_RAW_POST_DATA);
56?>
57