[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/phpgwapi/inc/ -> soaplib.soapinterop.php (source)

   1  <?php
   2      /**************************************************************************\
   3      * eGroupWare API - SOAP functions                                          *
   4      * This file written by dietrich@ganx4.com                                  *
   5      * shared functions and vars for use with soap client/server                *
   6      * ------------------------------------------------------------------------ *
   7      * This library is free software; you can redistribute it and/or modify it  *
   8      * under the terms of the GNU Lesser General Public License as published by *
   9      * the Free Software Foundation; either version 2.1 of the License,         *
  10      * or any later version.                                                    *
  11      * This library is distributed in the hope that it will be useful, but      *
  12      * WITHOUT ANY WARRANTY; without even the implied warranty of               *
  13      * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                     *
  14      * See the GNU Lesser General Public License for more details.              *
  15      * You should have received a copy of the GNU Lesser General Public License *
  16      * along with this library; if not, write to the Free Software Foundation,  *
  17      * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA            *
  18      \**************************************************************************/
  19  
  20      /* $Id: soaplib.soapinterop.php 20295 2006-02-15 12:31:25Z  $ */
  21  
  22      $GLOBALS['server']->add_to_map(
  23          'hello',
  24          array('string'),
  25          array('string')
  26      );
  27  	function hello($serverid)
  28      {
  29          return CreateObject('soap.soapval','return','string',$GLOBALS['egw_info']['server']['site_title']);
  30      }
  31  
  32      $GLOBALS['server']->add_to_map(
  33          'echoString',
  34          array('string'),
  35          array('string')
  36      );
  37  	function echoString($inputString)
  38      {
  39          return CreateObject('soap.soapval','return','string',$inputString);
  40      }
  41  
  42      $GLOBALS['server']->add_to_map(
  43          'echoStringArray',
  44          array('array'),
  45          array('array')
  46      );
  47  	function echoStringArray($inputStringArray)
  48      {
  49          return $inputStringArray;
  50      }
  51  
  52      $GLOBALS['server']->add_to_map(
  53          'echoInteger',
  54          array('int'),
  55          array('int')
  56      );
  57  	function echoInteger($inputInteger)
  58      {
  59          return $inputInteger;
  60      }
  61  
  62      $GLOBALS['server']->add_to_map(
  63          'echoIntegerArray',
  64          array('array'),
  65          array('array')
  66      );
  67  	function echoIntegerArray($inputIntegerArray)
  68      {
  69          return $inputIntegerArray;
  70      }
  71  
  72      $GLOBALS['server']->add_to_map(
  73          'echoFloat',
  74          array('float'),
  75          array('float')
  76      );
  77  	function echoFloat($inputFloat)
  78      {
  79          return $inputFloat;
  80      }
  81  
  82      $GLOBALS['server']->add_to_map(
  83          'echoFloatArray',
  84          array('array'),
  85          array('array')
  86      );
  87  	function echoFloatArray($inputFloatArray)
  88      {
  89          return $inputFloatArray;
  90      }
  91  
  92      $GLOBALS['server']->add_to_map(
  93          'echoStruct',
  94          array('SOAPStruct'),
  95          array('SOAPStruct')
  96      );
  97  	function echoStruct($inputStruct)
  98      {
  99          return $inputStruct;
 100      }
 101  
 102      $GLOBALS['server']->add_to_map(
 103          'echoStructArray',
 104          array('array'),
 105          array('array')
 106      );
 107  	function echoStructArray($inputStructArray)
 108      {
 109          return $inputStructArray;
 110      }
 111  
 112      $GLOBALS['server']->add_to_map(
 113          'echoVoid',
 114          array(),
 115          array()
 116      );
 117  	function echoVoid()
 118      {
 119      }
 120  
 121      $GLOBALS['server']->add_to_map(
 122          'echoBase64',
 123          array('base64'),
 124          array('base64')
 125      );
 126  	function echoBase64($b_encoded)
 127      {
 128          return base64_encode(base64_decode($b_encoded));
 129      }
 130  
 131      $GLOBALS['server']->add_to_map(
 132          'echoDate',
 133          array('timeInstant'),
 134          array('timeInstant')
 135      );
 136  	function echoDate($timeInstant)
 137      {
 138          return $timeInstant;
 139      }
 140  
 141      $GLOBALS['server']->add_to_map(
 142          'system_auth',
 143          array('string','string','string'),
 144          array('array')
 145      );
 146  
 147      $GLOBALS['server']->add_to_map(
 148          'system_auth_verify',
 149          array('string','string','string'),
 150          array('array')
 151      );
 152  ?>


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7