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_GroupB {
21
22    function echoStructAsSimpleTypes ($struct)
23    {
24      return array('outputString'  => $struct->varString,
25                   'outputInteger' => $struct->varInt,
26                   'outputFloat'   => $struct->varFloat);
27    }
28
29    function echoSimpleTypesAsStruct($string, $int, $float)
30    {
31      return (object)array("varString" => $string,
32      										 "varInt"    => $int,
33      										 "varFloat"  => $float);
34    }
35
36    function echoNestedStruct($struct)
37    {
38     return $struct;
39    }
40
41    function echo2DStringArray($ary)
42    {
43      return $ary;
44    }
45
46    function echoNestedArray($ary)
47    {
48      return $ary;
49    }
50}
51
52$server = new SoapServer((isset($_SERVER['HTTPS'])?"https://":"http://").$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/interopB.wsdl.php");
53$server->setClass("SOAP_Interop_GroupB");
54$server->handle();
55?>
56