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