1<?
2//
3// +----------------------------------------------------------------------+
4// | PHP Version 4                                                        |
5// +----------------------------------------------------------------------+
6// | Copyright (c) 1997-2018 The PHP Group                                |
7// +----------------------------------------------------------------------+
8// | This source file is subject to version 2.02 of the PHP license,      |
9// | that is bundled with this package in the file LICENSE, and is        |
10// | available through the world-wide-web at                              |
11// | http://www.php.net/license/2_02.txt.                                 |
12// | If you did not receive a copy of the PHP license and are unable to   |
13// | obtain it through the world-wide-web, please send a note to          |
14// | license@php.net so we can mail you a copy immediately.               |
15// +----------------------------------------------------------------------+
16// | Authors: Shane Caraveo <Shane@Caraveo.com>   Port to PEAR and more   |
17// | Authors: Dietrich Ayala <dietrich@ganx4.com> Original Author         |
18// +----------------------------------------------------------------------+
19
20class SOAP_Interop_Base {
21
22    function echoString($inputString)
23    {
24      return $inputString;
25    }
26
27    function echoStringArray($inputStringArray)
28    {
29      return $inputStringArray;
30    }
31
32
33    function echoInteger($inputInteger)
34    {
35      return $inputInteger;
36    }
37
38    function echoIntegerArray($inputIntegerArray)
39    {
40      return $inputIntegerArray;
41    }
42
43    function echoFloat($inputFloat)
44    {
45      return $inputFloat;
46    }
47
48    function echoFloatArray($inputFloatArray)
49    {
50      return $inputFloatArray;
51    }
52
53    function echoStruct($inputStruct)
54    {
55      return $inputStruct;
56    }
57
58    function echoStructArray($inputStructArray)
59    {
60      return $inputStructArray;
61    }
62
63    function echoVoid()
64    {
65      return NULL;
66    }
67
68    function echoBase64($b_encoded)
69    {
70      return $b_encoded;
71    }
72
73    function echoDate($timeInstant)
74    {
75      return $timeInstant;
76    }
77
78    function echoHexBinary($hb)
79    {
80      return $hb;
81    }
82
83    function echoDecimal($dec)
84    {
85      return $dec;
86    }
87
88    function echoBoolean($boolean)
89    {
90      return $boolean;
91    }
92
93    function echoMimeAttachment($stuff)
94    {
95        return new SOAP_Attachment('return','application/octet-stream',NULL,$stuff);
96    }
97}
98
99$server = new SoapServer((isset($_SERVER['HTTPS'])?"https://":"http://").$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/interop.wsdl.php");
100$server->setClass("SOAP_Interop_Base");
101$server->handle();
102?>
103