SOAP_Interop
[ class tree: SOAP_Interop ] [ index: SOAP_Interop ] [ all elements ]

Source for file interop_Round3GroupD.php

Documentation is available at interop_Round3GroupD.php

  1. <?php
  2. //
  3. // +----------------------------------------------------------------------+
  4. // | PHP Version 4                                                        |
  5. // +----------------------------------------------------------------------+
  6. // | Copyright (c) 1997-2002 The PHP Group                                |
  7. // +----------------------------------------------------------------------+
  8. // | This source file is subject to version 2.02 of the PHP license,      |
  9. // | that is bundled with this package in the file LICENSE, and is        |
  10. // | available at through the world-wide-web at                           |
  11. // | http://www.php.net/license/2_02.txt.                                 |
  12. // | If you did not receive a copy of the PHP license and are unable to   |
  13. // | obtain it through the world-wide-web, please send a note to          |
  14. // | license@php.net so we can mail you a copy immediately.               |
  15. // +----------------------------------------------------------------------+
  16. // | Authors: Shane Caraveo <Shane@Caraveo.com>                           |
  17. // +----------------------------------------------------------------------+
  18. //
  19. // $Id: interop_Round3GroupD.php,v 1.4 2005/04/01 16:18:00 chagenbu Exp $
  20. //
  21. require_once 'params_classes.php';
  22.  
  23. // http://www.whitemesa.com/r3/interop3.html
  24. // http://www.whitemesa.com/r3/plan.html
  25.  
  26. class SOAP_Interop_GroupD
  27. {
  28.  
  29.     // wsdlns:SoapInteropEmptySABinding
  30.     function &echoString($inputString)
  31.     {
  32.         return new SOAP_Value('outputString','string',$inputString);
  33.     }
  34.  
  35.     function &echoStringArray($inputStringArray)
  36.     {
  37.         $ra = array();
  38.         if ($inputStringArray{
  39.             foreach($inputStringArray as $s{
  40.                 $ra[= new SOAP_Value('item','string',$s);
  41.             }
  42.         }
  43.         return new SOAP_Value('outputStringArray',NULL,$ra);
  44.     }
  45.  
  46.     function &echoStruct($inputStruct)
  47.     {
  48.         return $inputStruct->to_soap();
  49.     }
  50.  
  51.     function &echoStructArray($inputStructArray)
  52.     {
  53.         $ra = array();
  54.         if ($inputStructArray{
  55.             $c count($inputStructArray);
  56.             for ($i = 0; $i $c$i++{
  57.                 $ra[$inputStructArray[$i]->to_soap();
  58.             }
  59.         }
  60.         return $ra;
  61.     }
  62.  
  63.     function echoVoid()
  64.     {
  65.         return NULL;
  66.     }
  67.  
  68.     function echoPerson()
  69.     {
  70.         return NULL;
  71.     }
  72.  
  73.     function &x_Document(&$document)
  74.     {
  75.         return new SOAP_Value('result_Document','{http://soapinterop.org/xsd}x_Document',$document);
  76.     }
  77.  
  78.     function echoEmployee()
  79.     {
  80.         return NULL;
  81.     }
  82.  
  83. }

Documentation generated on Mon, 11 Mar 2019 14:54:33 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.