Back to index

php5  5.3.10
server_round2_groupB.php
Go to the documentation of this file.
00001 <?
00002 //
00003 // +----------------------------------------------------------------------+
00004 // | PHP Version 4                                                        |
00005 // +----------------------------------------------------------------------+
00006 // | Copyright (c) 1997-2003 The PHP Group                                |
00007 // +----------------------------------------------------------------------+
00008 // | This source file is subject to version 2.02 of the PHP license,      |
00009 // | that is bundled with this package in the file LICENSE, and is        |
00010 // | available through the world-wide-web at                              |
00011 // | http://www.php.net/license/2_02.txt.                                 |
00012 // | If you did not receive a copy of the PHP license and are unable to   |
00013 // | obtain it through the world-wide-web, please send a note to          |
00014 // | license@php.net so we can mail you a copy immediately.               |
00015 // +----------------------------------------------------------------------+
00016 // | Authors: Shane Caraveo <Shane@Caraveo.com>   Port to PEAR and more   |
00017 // | Authors: Dietrich Ayala <dietrich@ganx4.com> Original Author         |
00018 // +----------------------------------------------------------------------+
00019 //
00020 // $Id: server_round2_groupB.php 242949 2007-09-26 15:44:16Z cvs2svn $
00021 //
00022 
00023 class SOAP_Interop_GroupB {
00024 
00025     function echoStructAsSimpleTypes ($struct)
00026     {
00027       return array('outputString'  => $struct->varString,
00028                    'outputInteger' => $struct->varInt,
00029                    'outputFloat'   => $struct->varFloat);
00030     }
00031 
00032     function echoSimpleTypesAsStruct($string, $int, $float)
00033     {
00034       return (object)array("varString" => $string,
00035                                                                        "varInt"    => $int,
00036                                                                        "varFloat"  => $float);
00037     }
00038 
00039     function echoNestedStruct($struct)
00040     {
00041      return $struct;
00042     }
00043 
00044     function echo2DStringArray($ary)
00045     {
00046       return $ary;
00047     }
00048 
00049     function echoNestedArray($ary)
00050     {
00051       return $ary;
00052     }
00053 }
00054 
00055 $server = new SoapServer((isset($_SERVER['HTTPS'])?"https://":"http://").$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/interopB.wsdl.php");
00056 $server->setClass("SOAP_Interop_GroupB");
00057 $server->handle();
00058 ?>