Source for file interop_Round2GroupB.php
Documentation is available at interop_Round2GroupB.php
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2003 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.02 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/2_02.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Shane Caraveo <Shane@Caraveo.com> Port to PEAR and more |
// | Authors: Dietrich Ayala <dietrich@ganx4.com> Original Author |
// +----------------------------------------------------------------------+
// $Id: interop_Round2GroupB.php,v 1.8 2004/06/10 23:19:22 thesaur Exp $
require_once 'params_classes.php';
class SOAP_Interop_GroupB {
var $__dispatch_map = array ();
function SOAP_Interop_GroupB () {
$this->__dispatch_map['echoStructAsSimpleTypes'] =
array ('in' => array ('inputStruct' => 'SOAPStruct'),
'out' => array ('outputString' => 'string', 'outputInteger' => 'int', 'outputFloat' => 'float')
$this->__dispatch_map['echoSimpleTypesAsStruct'] =
array ('in' => array ('inputString' => 'string', 'inputInteger' => 'int', 'inputFloat' => 'float'),
'out' => array ('return' => 'SOAPStruct')
$this->__dispatch_map['echoNestedStruct'] =
array ('in' => array ('inputStruct' => 'SOAPStructStruct'),
'out' => array ('return' => 'SOAPStructStruct')
$this->__dispatch_map['echo2DStringArray'] =
array ('in' => array ('input2DStringArray' => 'ArrayOfString2D'),
'out' => array ('return' => 'ArrayOfString2D')
$this->__dispatch_map['echoNestedArray'] =
array ('in' => array ('inputString' => 'SOAPArrayStruct'),
'out' => array ('return' => 'SOAPArrayStruct')
/* this private function is called on by SOAP_Server to determine any
special dispatch information that might be necessary. This, for example,
can be used to set up a dispatch map for functions that return multiple
function __dispatch ($methodname) {
return $this->__dispatch_map[$methodname];
function &echoStructAsSimpleTypes (&$struct)
# convert a SOAPStruct to an array
$r[] = & new SOAP_Value ('outputString','string',$struct->varString );
$r[] = & new SOAP_Value ('outputInteger','int',$struct->varInt );
$r[] = & new SOAP_Value ('outputFloat','float',$struct->varFloat );
function &echoSimpleTypesAsStruct (&$string, &$int, &$float)
# convert a input into struct
$v = & new SOAPStruct ($string, $int, $float);
return new SOAP_Value ('return','{http://soapinterop.org/xsd}SOAPStruct',$v);
function &echoNestedStruct (&$struct)
$string = $separator . '__to_soap' . $separator;
if(strpos($arr_str, $string) !== false ) {
return $struct->__to_soap ();
function &echo2DStringArray (&$ary)
$ret = & new SOAP_Value ('return','Array',$ary);
$ret->options ['flatten'] = TRUE;
function &echoNestedArray (&$ary)
Documentation generated on Mon, 11 Mar 2019 14:54:33 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|