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