home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / xampp-win32-1.6.7-installer.exe / php / PEAR / SOAP / Interop / params_Round3GroupD.php < prev    next >
Encoding:
PHP Script  |  2008-07-02  |  4.9 KB  |  121 lines

  1. <?php
  2. //
  3. // +----------------------------------------------------------------------+
  4. // | PHP Version 4                                                        |
  5. // +----------------------------------------------------------------------+
  6. // | Copyright (c) 1997-2003 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: params_Round3GroupD.php,v 1.7 2003/04/14 01:40:21 shane Exp $
  20. //
  21. require_once 'params_values.php';
  22. require_once 'interop_test.php';
  23. define('INTEROP_R3D_COMPOUND1','Round 3 Group D Compound 1');
  24. define('INTEROP_R3D_COMPOUND2','Round 3 Group D Compound 2');
  25. define('INTEROP_R3D_DOCLIT','Round 3 Group D DocLit');
  26. define('INTEROP_R3D_DOCLIT_PARAM','Round 3 Group D DocLitParams');
  27. define('INTEROP_R3D_IMPORT1','Round 3 Group D Import 1');
  28. define('INTEROP_R3D_IMPORT2','Round 3 Group D Import 2');
  29. define('INTEROP_R3D_IMPORT3','Round 3 Group D Import 3');
  30. define('INTEROP_R3D_RPCENC','Round 3 Group D RpcEnc');
  31. //***********************************************************
  32. // GroupD 
  33.  
  34. # COMPOUND 1 tests
  35. # http://www.whitemesa.net/wsdl/r3/compound1.wsdl
  36. $test =& new SOAP_Interop_Test('echoPerson', array('x_Person'=>&$person));
  37. $test->type = 'php'; // force to php testing
  38. $soap_tests[INTEROP_R3D_COMPOUND1][] = &$test;
  39. unset($test);
  40.  
  41. $test =& new SOAP_Interop_Test('echoDocument', array('x_Document'=>'Test Document Here'));
  42. $test->type = 'php'; // force to php testing
  43. $soap_tests[INTEROP_R3D_COMPOUND1][] = &$test;
  44. unset($test);
  45.  
  46. # COMPOUND 2 tests
  47. # http://www.whitemesa.net/wsdl/r3/compound2.wsdl
  48. $test =& new SOAP_Interop_Test('echoEmployee', array('x_Employee'=>&$employee));
  49. $test->type = 'php'; // force to php testing
  50. $soap_tests[INTEROP_R3D_COMPOUND2][] = &$test;
  51. unset($test);
  52.  
  53. # DOC LIT Tests
  54. # http://www.whitemesa.net/wsdl/r3/interoptestdoclit.wsdl
  55. $soap_tests[INTEROP_R3D_DOCLIT][] =& 
  56.     new SOAP_Interop_Test('echoString', 
  57.         array('echoStringParam' => &$string));
  58. $soap_tests[INTEROP_R3D_DOCLIT][] =& 
  59.     new SOAP_Interop_Test('echoStringArray', 
  60.         array('echoStringArrayParam' => &$string_array));
  61. $soap_tests[INTEROP_R3D_DOCLIT][] =& 
  62.     new SOAP_Interop_Test('echoStruct',
  63.         array('echoStructParam' => &$soapstruct));
  64. #$soap_tests[INTEROP_R3D_DOCLIT][] = 
  65. #    new SOAP_Interop_Test('echoVoid', NULL);
  66.  
  67. # DOC LIT w/Params Tests
  68. # http://www.whitemesa.net/wsdl/r3/interoptestdoclitparameters.wsdl
  69. $soap_tests[INTEROP_R3D_DOCLIT_PARAM][] =& 
  70.     new SOAP_Interop_Test('echoString', 
  71.         array('param0' => $string));
  72. $soap_tests[INTEROP_R3D_DOCLIT_PARAM][] =& 
  73.     new SOAP_Interop_Test('echoStringArray', 
  74.         array('param0' => &$string_array));
  75. $soap_tests[INTEROP_R3D_DOCLIT_PARAM][] =& 
  76.     new SOAP_Interop_Test('echoStruct',
  77.         array('param0' => &$soapstruct));
  78. $soap_tests[INTEROP_R3D_DOCLIT_PARAM][] =& 
  79.     new SOAP_Interop_Test('echoVoid', NULL);
  80.  
  81. # IMPORT 1 tests
  82. # http://www.whitemesa.net/wsdl/r3/import1.wsdl
  83. $soap_tests[INTEROP_R3D_IMPORT1][] =& 
  84.     new SOAP_Interop_Test('echoString', 
  85.         array('x' => &$string));
  86.  
  87. # IMPORT 2 tests
  88. # http://www.whitemesa.net/wsdl/r3/import2.wsdl
  89. $soap_tests[INTEROP_R3D_IMPORT2][] =& 
  90.     new SOAP_Interop_Test('echoStruct',
  91.         array('inputStruct' => &$soapstruct));
  92.  
  93. # IMPORT 2 tests
  94. # http://www.whitemesa.net/wsdl/r3/import3.wsdl
  95. $test =& new SOAP_Interop_Test('echoStruct',
  96.         array('inputStruct' => &$soapstruct));
  97. $test->service = 'Import3';
  98. $soap_tests[INTEROP_R3D_IMPORT3][] = &$test;
  99. unset($test);
  100.  
  101. $test =& new SOAP_Interop_Test('echoStructArray', 
  102.         array('inputArray' =>&$soapstruct_array));
  103. $test->service = 'Import3';
  104. $soap_tests[INTEROP_R3D_IMPORT3][] = &$test;
  105. unset($test);
  106.  
  107. # RPC ENCODED Tests
  108. # http://www.whitemesa.net/wsdl/r3/interoptestdoclitparameters.wsdl
  109. $soap_tests[INTEROP_R3D_RPCENC][] =& 
  110.     new SOAP_Interop_Test('echoString', 
  111.         array('param0' => &$string));
  112. $soap_tests[INTEROP_R3D_RPCENC][] =& 
  113.     new SOAP_Interop_Test('echoStringArray', 
  114.         array('param0' => &$string_array));
  115. $soap_tests[INTEROP_R3D_RPCENC][] =& 
  116.     new SOAP_Interop_Test('echoStruct',
  117.         array('param0' => &$soapstruct));
  118. $soap_tests[INTEROP_R3D_RPCENC][] =& 
  119.     new SOAP_Interop_Test('echoVoid', NULL);
  120.  
  121. ?>