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>                           |
17// +----------------------------------------------------------------------+
18
19class SOAP_Interop_GroupC {
20    var $method_namespace = 'http://soapinterop.org/echoheader/';
21
22    function echoMeStringRequest($string)
23    {
24        return new SoapHeader($this->method_namespace, "echoMeStringResponse", $string);
25    }
26
27    function echoMeStructRequest($struct)
28    {
29        return new SoapHeader($this->method_namespace, "echoMeStructResponse", $struct);
30    }
31
32    function echoVoid()
33    {
34    }
35}
36
37$server = new SoapServer((isset($_SERVER['HTTPS'])?"https://":"http://").$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/echoheadersvc.wsdl.php");
38$server->setClass("SOAP_Interop_GroupC");
39$server->handle();
40?>
41