egroupware/phpgwapi/inc/soaplib.soapinterop.php

153 lines
3.5 KiB
PHP
Raw Normal View History

2001-08-10 02:31:21 +02:00
<?php
2001-11-23 18:54:13 +01:00
/**************************************************************************\
2004-08-09 15:46:03 +02:00
* eGroupWare API - SOAP functions *
2001-11-23 18:54:13 +01:00
* This file written by dietrich@ganx4.com *
* shared functions and vars for use with soap client/server *
2005-11-26 15:25:39 +01:00
* ------------------------------------------------------------------------ *
2001-11-23 18:54:13 +01:00
* This library is free software; you can redistribute it and/or modify it *
* under the terms of the GNU Lesser General Public License as published by *
* the Free Software Foundation; either version 2.1 of the License, *
* or any later version. *
* This library is distributed in the hope that it will be useful, but *
* WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU Lesser General Public License for more details. *
* You should have received a copy of the GNU Lesser General Public License *
* along with this library; if not, write to the Free Software Foundation, *
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
\**************************************************************************/
/* $Id$ */
$GLOBALS['server']->add_to_map(
2001-08-10 02:31:21 +02:00
'hello',
array('string'),
array('string')
);
function hello($serverid)
{
2005-11-26 15:25:39 +01:00
return CreateObject('soap.soapval','return','string',$GLOBALS['egw_info']['server']['site_title']);
2001-08-10 02:31:21 +02:00
}
$GLOBALS['server']->add_to_map(
2001-11-23 18:54:13 +01:00
'echoString',
array('string'),
array('string')
2001-08-10 02:31:21 +02:00
);
function echoString($inputString)
{
2001-11-23 18:54:13 +01:00
return CreateObject('soap.soapval','return','string',$inputString);
2001-08-10 02:31:21 +02:00
}
$GLOBALS['server']->add_to_map(
2001-11-23 18:54:13 +01:00
'echoStringArray',
array('array'),
array('array')
2001-08-10 02:31:21 +02:00
);
function echoStringArray($inputStringArray)
{
return $inputStringArray;
}
$GLOBALS['server']->add_to_map(
2001-11-23 18:54:13 +01:00
'echoInteger',
array('int'),
array('int')
2001-08-10 02:31:21 +02:00
);
function echoInteger($inputInteger)
{
return $inputInteger;
}
$GLOBALS['server']->add_to_map(
2001-11-23 18:54:13 +01:00
'echoIntegerArray',
array('array'),
array('array')
2001-08-10 02:31:21 +02:00
);
function echoIntegerArray($inputIntegerArray)
{
return $inputIntegerArray;
}
$GLOBALS['server']->add_to_map(
2001-11-23 18:54:13 +01:00
'echoFloat',
array('float'),
array('float')
2001-08-10 02:31:21 +02:00
);
function echoFloat($inputFloat)
{
return $inputFloat;
}
$GLOBALS['server']->add_to_map(
2001-11-23 18:54:13 +01:00
'echoFloatArray',
array('array'),
array('array')
2001-08-10 02:31:21 +02:00
);
function echoFloatArray($inputFloatArray)
{
return $inputFloatArray;
}
$GLOBALS['server']->add_to_map(
2001-11-23 18:54:13 +01:00
'echoStruct',
array('SOAPStruct'),
array('SOAPStruct')
2001-08-10 02:31:21 +02:00
);
function echoStruct($inputStruct)
{
return $inputStruct;
}
$GLOBALS['server']->add_to_map(
2001-11-23 18:54:13 +01:00
'echoStructArray',
array('array'),
array('array')
2001-08-10 02:31:21 +02:00
);
function echoStructArray($inputStructArray)
{
return $inputStructArray;
}
$GLOBALS['server']->add_to_map(
2001-11-23 18:54:13 +01:00
'echoVoid',
2001-08-10 02:31:21 +02:00
array(),
array()
);
function echoVoid()
{
}
$GLOBALS['server']->add_to_map(
2001-11-23 18:54:13 +01:00
'echoBase64',
array('base64'),
array('base64')
2001-08-10 02:31:21 +02:00
);
function echoBase64($b_encoded)
{
return base64_encode(base64_decode($b_encoded));
}
$GLOBALS['server']->add_to_map(
2001-11-23 18:54:13 +01:00
'echoDate',
array('timeInstant'),
array('timeInstant')
2001-08-10 02:31:21 +02:00
);
function echoDate($timeInstant)
{
return $timeInstant;
}
2001-08-18 22:37:33 +02:00
$GLOBALS['server']->add_to_map(
2001-08-18 22:37:33 +02:00
'system_auth',
array('string','string','string'),
array('array')
);
$GLOBALS['server']->add_to_map(
2001-08-18 22:37:33 +02:00
'system_auth_verify',
array('string','string','string'),
array('array')
);
2001-08-10 02:31:21 +02:00
?>