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($input) {
17    if ($input->whichFault == 2) {
18        return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, $input->param1, "SimpleFault2");
19    } else if ($input->whichFault == 3) {
20        return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, $input->param2, "SimpleFault3");
21    } else {
22        return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, null, "SimpleFault1");
23      }
24  }
25
26  function echoMultipleFaults2($input) {
27    if ($input->whichFault == 2) {
28        return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $input->param1, "SimpleFault1");
29    } else if ($input->whichFault == 3) {
30        return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $input->param3, "SimpleFault3");
31    } else {
32        return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $input->param2, "SimpleFault2");
33      }
34  }
35
36  function echoMultipleFaults3($input) {
37    if ($input->whichFault == 2) {
38        return new SoapFault("Server", "Fault in response to 'echoMultipleFaults3'.", null, $input->param2, "SimpleFault2");
39      } else {
40        return new SoapFault("Server", "Fault in response to 'echoMultipleFaults3'.", null, $input->param1, "SimpleFault1");
41      }
42  }
43
44  function echoMultipleFaults4($input) {
45    if ($input->whichFault == 2) {
46        return new SoapFault("Server", "Fault in response to 'echoMultipleFaults4'.", null, $input->param2, "SimpleFault2");
47      } else {
48        return new SoapFault("Server", "Fault in response to 'echoMultipleFaults4'.", null, $input->param1, "SimpleFault1");
49      }
50  }
51}
52
53$server = new SoapServer(dirname(__FILE__)."/round4_groupH_simple_doclit.wsdl");
54$server->setClass("SOAP_Interop_GroupH");
55$server->handle($HTTP_RAW_POST_DATA);
56?>
57