Source for file interop_Round2Base.php
Documentation is available at interop_Round2Base.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_Round2Base.php,v 1.7 2004/06/10 07:54:03 arnaud Exp $
require_once 'params_classes.php';
$faultmsg = & new SOAP_Message ("Fault",$params,"http://schemas.xmlsoap.org/soap/envelope/");
return pack("H" . $len, $data);
class SOAP_Interop_Base {
function &echoString ($inputString)
return new SOAP_Value ('outputString','string',$inputString);
function &echoStringArray ($inputStringArray)
foreach($inputStringArray as $s) {
$ra[] = & new SOAP_Value ('item','string',$s);
return new SOAP_Value ('outputStringArray',NULL ,$ra);
function &echoInteger ($inputInteger)
return new SOAP_Value ('outputInteger','int',(integer) $inputInteger);
function &echoIntegerArray ($inputIntegerArray)
if ($inputIntegerArray) {
foreach ($inputIntegerArray as $i) {
$ra[] = & new SOAP_Value ('item','int',$i);
return new SOAP_Value ('outputIntArray',NULL ,$ra);
function &echoFloat ($inputFloat)
return new SOAP_Value ('outputFloat','float',(FLOAT) $inputFloat);
function &echoFloatArray ($inputFloatArray)
foreach($inputFloatArray as $float) {
$ra[] = & new SOAP_Value ('item','float',(FLOAT) $float);
return new SOAP_Value ('outputFloatArray',NULL ,$ra);
function &echoStruct ($inputStruct)
return $inputStruct->__to_soap ();
function &echoStructArray ($inputStructArray)
$c = count($inputStructArray);
for ($i = 0; $i < $c; $i++ ) {
$ra[] = $this->echoStruct ($inputStructArray[$i]);
function &echoBase64 ($b_encoded)
function &echoDate ($timeInstant)
$dt = & new SOAP_Type_dateTime ($timeInstant);
if ($dt->toUnixtime () != -1 ) {
return new SOAP_Value ('return','dateTime',$value);
return new SOAP_Fault (" Value $timeInstant is not a dateTime value" );
function &echoHexBinary ($hb)
function &echoDecimal ($dec)
return new SOAP_Value ('return','decimal',(FLOAT) $dec);
function &echoBoolean ($boolean)
return new SOAP_Value ('return','boolean',$boolean);
function &echoMimeAttachment ($stuff)
return new SOAP_Attachment ('return','application/octet-stream',NULL ,$stuff);
Documentation generated on Mon, 11 Mar 2019 14:54:33 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|