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//
20// $Id$
21//
22
23class SOAP_Interop_Base {
24
25    function echoString($inputString)
26    {
27      return $inputString;
28    }
29
30    function echoStringArray($inputStringArray)
31    {
32      return $inputStringArray;
33    }
34
35
36    function echoInteger($inputInteger)
37    {
38      return $inputInteger;
39    }
40
41    function echoIntegerArray($inputIntegerArray)
42    {
43      return $inputIntegerArray;
44    }
45
46    function echoFloat($inputFloat)
47    {
48      return $inputFloat;
49    }
50
51    function echoFloatArray($inputFloatArray)
52    {
53      return $inputFloatArray;
54    }
55
56    function echoStruct($inputStruct)
57    {
58      return $inputStruct;
59    }
60
61    function echoStructArray($inputStructArray)
62    {
63      return $inputStructArray;
64    }
65
66    function echoVoid()
67    {
68      return NULL;
69    }
70
71    function echoBase64($b_encoded)
72    {
73      return $b_encoded;
74    }
75
76    function echoDate($timeInstant)
77    {
78      return $timeInstant;
79    }
80
81    function echoHexBinary($hb)
82    {
83      return $hb;
84    }
85
86    function echoDecimal($dec)
87    {
88      return $dec;
89    }
90
91    function echoBoolean($boolean)
92    {
93      return $boolean;
94    }
95
96    function echoMimeAttachment($stuff)
97    {
98        return new SOAP_Attachment('return','application/octet-stream',NULL,$stuff);
99    }
100}
101
102$server = new SoapServer((isset($_SERVER['HTTPS'])?"https://":"http://").$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/interop.wsdl.php");
103$server->setClass("SOAP_Interop_Base");
104$server->handle();
105?>
106