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

Source for file params_Round2GroupC.php

Documentation is available at params_Round2GroupC.php

  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_Round2GroupC.php,v 1.4 2003/04/07 00:51:17 shane Exp $
  20. //
  21. require_once 'params_values.php';
  22. require_once 'interop_test.php';
  23. define('INTEROP_R2GROUPC','Round 2 Group C');
  24. //***********************************************************
  25. // echoMeStringRequest php val tests
  26.  
  27. // echoMeStringRequest with endpoint as header destination, doesn't have to understand
  28. $test =new SOAP_Interop_Test('echoVoid'NULL);
  29. $test->headers[= array('{http://soapinterop.org/echoheader/}echoMeStringRequest'&$string0,SOAP_TEST_ACTOR_NEXT);
  30. $test->headers_expect['echoMeStringRequest'= array('echoMeStringResponse'=>&$string);
  31. $soap_tests[INTEROP_R2GROUPC][=$test;
  32. unset($test);
  33.  
  34. // echoMeStringRequest with endpoint as header destination, must understand
  35. $test =new SOAP_Interop_Test('echoVoid'NULL);
  36. $test->headers[= array('{http://soapinterop.org/echoheader/}echoMeStringRequest'&$string1,SOAP_TEST_ACTOR_NEXT);
  37. $test->headers_expect['echoMeStringRequest'= array('echoMeStringResponse'=>&$string);
  38. $soap_tests[INTEROP_R2GROUPC][=$test;
  39. unset($test);
  40.  
  41. // echoMeStringRequest with endpoint NOT header destination, doesn't have to understand
  42. $test =new SOAP_Interop_Test('echoVoid'NULL);
  43. $test->headers[= array('{http://soapinterop.org/echoheader/}echoMeStringRequest'&$string0SOAP_TEST_ACTOR_OTHER);
  44. $test->headers_expect['echoMeStringRequest'= array();
  45. $soap_tests[INTEROP_R2GROUPC][=$test;
  46. unset($test);
  47.  
  48. // echoMeStringRequest with endpoint NOT header destination, must understand
  49. $test =new SOAP_Interop_Test('echoVoid'NULL);
  50. $test->headers[= array('{http://soapinterop.org/echoheader/}echoMeStringRequest'&$string1SOAP_TEST_ACTOR_OTHER);
  51. $test->headers_expect['echoMeStringRequest'= array();
  52. $soap_tests[INTEROP_R2GROUPC][=$test;
  53. unset($test);
  54.  
  55. //***********************************************************
  56. // echoMeStringRequest soapval tests
  57.  
  58. // echoMeStringRequest with endpoint as header destination, doesn't have to understand
  59. $test =new SOAP_Interop_Test('echoVoid'NULL);
  60. $test->type = 'soapval';
  61. $test->headers[=new SOAP_Header('{http://soapinterop.org/echoheader/}echoMeStringRequest''string'$string);
  62. $test->headers_expect['echoMeStringRequest'= array('echoMeStringResponse'=>&$string);
  63. $soap_tests[INTEROP_R2GROUPC][=$test;
  64. unset($test);
  65.  
  66. // echoMeStringRequest with endpoint as header destination, must understand
  67. $test =new SOAP_Interop_Test('echoVoid'NULL);
  68. $test->type = 'soapval';
  69. $test->headers[=new SOAP_Header('{http://soapinterop.org/echoheader/}echoMeStringRequest''string'$string1);
  70. $test->type = 'soapval'// force a soapval version of this test
  71. $test->headers_expect['echoMeStringRequest'= array('echoMeStringResponse'=>&$string);
  72. $soap_tests[INTEROP_R2GROUPC][=$test;
  73. unset($test);
  74.  
  75. // echoMeStringRequest with endpoint NOT header destination, doesn't have to understand
  76. $test =new SOAP_Interop_Test('echoVoid'NULL);
  77. $test->type = 'soapval';
  78. $test->headers[=new SOAP_Header('{http://soapinterop.org/echoheader/}echoMeStringRequest''string'$string0SOAP_TEST_ACTOR_OTHER);
  79. $test->headers_expect['echoMeStringRequest'= array();
  80. $soap_tests[INTEROP_R2GROUPC][=$test;
  81. unset($test);
  82.  
  83. // echoMeStringRequest with endpoint NOT header destination, must understand
  84. $test =new SOAP_Interop_Test('echoVoid'NULL);
  85. $test->type = 'soapval';
  86. $test->headers[=new SOAP_Header('{http://soapinterop.org/echoheader/}echoMeStringRequest''string'$string1SOAP_TEST_ACTOR_OTHER);
  87. $test->headers_expect['echoMeStringRequest'= array();
  88. $soap_tests[INTEROP_R2GROUPC][=$test;
  89. unset($test);
  90.  
  91. // echoMeStringRequest with endpoint header destination, must understand,
  92. // invalid namespace, should recieve a fault
  93. #$test =& new SOAP_Interop_Test('echoVoid', NULL);
  94. #$test->type = 'soapval';
  95. #$test->headers[] =& new SOAP_Header('{http://unknown.org/echoheader/}echoMeStringRequest', 'string', 'hello world',  1);
  96. #$test->headers_expect['echoMeStringRequest'] = array();
  97. #$test->expect_fault = TRUE;
  98. #$soap_tests[INTEROP_R2GROUPC][] = $test;
  99.  
  100. //***********************************************************
  101. // php val tests
  102. // echoMeStructRequest with endpoint as header destination, doesn't have to understand
  103. $test =new SOAP_Interop_Test('echoVoid'NULL);
  104. $test->headers[$soapstruct->__to_soap('{http://soapinterop.org/echoheader/}echoMeStructRequest',TRUE);
  105. $test->headers_expect['echoMeStructRequest'=
  106.     array('echoMeStructResponse'=> &$soapstruct);
  107. $soap_tests[INTEROP_R2GROUPC][=$test;
  108. unset($test);
  109.  
  110. // echoMeStructRequest with endpoint as header destination, must understand
  111. $test =new SOAP_Interop_Test('echoVoid'NULL);
  112. $test->headers[$soapstruct->__to_soap('{http://soapinterop.org/echoheader/}echoMeStructRequest',TRUE,1);
  113. $test->headers_expect['echoMeStructRequest'=
  114.     array('echoMeStructResponse'=> &$soapstruct);
  115. $soap_tests[INTEROP_R2GROUPC][=$test;
  116. unset($test);
  117.  
  118. // echoMeStructRequest with endpoint NOT header destination, doesn't have to understand
  119. $test =new SOAP_Interop_Test('echoVoid'NULL);
  120. $test->headers[$soapstruct->__to_soap('{http://soapinterop.org/echoheader/}echoMeStructRequest',TRUE,0SOAP_TEST_ACTOR_OTHER);
  121. $test->headers_expect['echoMeStructRequest'= array();
  122. $soap_tests[INTEROP_R2GROUPC][=$test;
  123. unset($test);
  124.  
  125. // echoMeStructRequest with endpoint NOT header destination, must understand
  126. $test =new SOAP_Interop_Test('echoVoid'NULL);
  127. $test->headers[$soapstruct->__to_soap('{http://soapinterop.org/echoheader/}echoMeStructRequest',TRUE,1SOAP_TEST_ACTOR_OTHER);
  128. $test->headers_expect['echoMeStructRequest'= array();
  129. $soap_tests[INTEROP_R2GROUPC][=$test;
  130. unset($test);
  131.  
  132. //***********************************************************
  133. // soapval tests
  134. // echoMeStructRequest with endpoint as header destination, doesn't have to understand
  135. $test =new SOAP_Interop_Test('echoVoid'NULL);
  136. $test->type = 'soapval';
  137. $test->headers[$soapstruct->__to_soap('{http://soapinterop.org/echoheader/}echoMeStructRequest',TRUE);
  138. $test->headers_expect['echoMeStructRequest'=
  139.     array('echoMeStructResponse'=> &$soapstruct);
  140. $soap_tests[INTEROP_R2GROUPC][=$test;
  141. unset($test);
  142.  
  143. // echoMeStructRequest with endpoint as header destination, must understand
  144. $test =new SOAP_Interop_Test('echoVoid'NULL);
  145. $test->type = 'soapval';
  146. $test->headers[$soapstruct->__to_soap('{http://soapinterop.org/echoheader/}echoMeStructRequest',TRUE,1);
  147. $test->headers_expect['echoMeStructRequest'=
  148.     array('echoMeStructResponse'=> &$soapstruct);
  149. $soap_tests[INTEROP_R2GROUPC][=$test;
  150. unset($test);
  151.  
  152. // echoMeStructRequest with endpoint NOT header destination, doesn't have to understand
  153. $test =new SOAP_Interop_Test('echoVoid'NULL);
  154. $test->type = 'soapval';
  155. $test->headers[$soapstruct->__to_soap('{http://soapinterop.org/echoheader/}echoMeStructRequest',TRUE,0SOAP_TEST_ACTOR_OTHER);
  156. $test->headers_expect['echoMeStructRequest'= array();
  157. $soap_tests[INTEROP_R2GROUPC][=$test;
  158. unset($test);
  159.  
  160. // echoMeStructRequest with endpoint NOT header destination, must understand
  161. $test =new SOAP_Interop_Test('echoVoid'NULL);
  162. $test->type = 'soapval';
  163. $test->headers[$soapstruct->__to_soap('{http://soapinterop.org/echoheader/}echoMeStructRequest',TRUE,1SOAP_TEST_ACTOR_OTHER);
  164. $test->headers_expect['echoMeStructRequest'= array();
  165. $soap_tests[INTEROP_R2GROUPC][=$test;
  166. unset($test);
  167.  
  168. //***********************************************************
  169. // echoMeUnknown php val tests
  170. // echoMeUnknown with endpoint as header destination, doesn't have to understand
  171. $test =new SOAP_Interop_Test('echoVoid'NULL);
  172. $test->headers[= array('{http://soapinterop.org/echoheader/}echoMeUnknown'$string,0,SOAP_TEST_ACTOR_NEXT);
  173. $test->headers_expect['echoMeUnknown'= array();
  174. $soap_tests[INTEROP_R2GROUPC][=$test;
  175. unset($test);
  176.  
  177. // echoMeUnknown with endpoint as header destination, must understand
  178. $test =new SOAP_Interop_Test('echoVoid'NULL);
  179. $test->headers[= array('{http://soapinterop.org/echoheader/}echoMeUnknown'$string,1,SOAP_TEST_ACTOR_NEXT);
  180. $test->headers_expect['echoMeUnknown'= array();
  181. $test->expect_fault = TRUE;
  182. $soap_tests[INTEROP_R2GROUPC][=$test;
  183. unset($test);
  184.  
  185. // echoMeUnknown with endpoint NOT header destination, doesn't have to understand
  186. $test =new SOAP_Interop_Test('echoVoid'NULL);
  187. $test->headers[= array('{http://soapinterop.org/echoheader/}echoMeUnknown'$string,0SOAP_TEST_ACTOR_OTHER);
  188. $test->headers_expect['echoMeUnknown'= array();
  189. $soap_tests[INTEROP_R2GROUPC][=$test;
  190. unset($test);
  191.  
  192. // echoMeUnknown with endpoint NOT header destination, must understand
  193. $test =new SOAP_Interop_Test('echoVoid'NULL);
  194. $test->headers[= array('{http://soapinterop.org/echoheader/}echoMeUnknown'$string1SOAP_TEST_ACTOR_OTHER);
  195. $test->headers_expect['echoMeUnknown'= array();
  196. $soap_tests[INTEROP_R2GROUPC][=$test;
  197. unset($test);
  198.  
  199. //***********************************************************
  200. // echoMeUnknown soapval tests
  201. // echoMeUnknown with endpoint as header destination, doesn't have to understand
  202. $test =new SOAP_Interop_Test('echoVoid'NULL);
  203. $test->type = 'soapval';
  204. $test->headers[=new SOAP_Header('{http://soapinterop.org/echoheader/}echoMeUnknown','string',$string);
  205. $test->headers_expect['echoMeUnknown'= array();
  206. $soap_tests[INTEROP_R2GROUPC][=$test;
  207. unset($test);
  208.  
  209. // echoMeUnknown with endpoint as header destination, must understand
  210. $test =new SOAP_Interop_Test('echoVoid'NULL);
  211. $test->type = 'soapval';
  212. $test->headers[=new SOAP_Header('{http://soapinterop.org/echoheader/}echoMeUnknown','string',$string,1);
  213. $test->headers_expect['echoMeUnknown'= array();
  214. $test->expect_fault = TRUE;
  215. $soap_tests[INTEROP_R2GROUPC][=$test;
  216. unset($test);
  217.  
  218. // echoMeUnknown with endpoint NOT header destination, doesn't have to understand
  219. $test =new SOAP_Interop_Test('echoVoid'NULL);
  220. $test->type = 'soapval';
  221. $test->headers[=new SOAP_Header('{http://soapinterop.org/echoheader/}echoMeUnknown','string',$string0SOAP_TEST_ACTOR_OTHER);
  222. $test->headers_expect['echoMeUnknown'= array();
  223. $soap_tests[INTEROP_R2GROUPC][=$test;
  224. unset($test);
  225.  
  226. // echoMeUnknown with endpoint NOT header destination, must understand
  227. $test =new SOAP_Interop_Test('echoVoid'NULL);
  228. $test->type = 'soapval';
  229. $test->headers[=new SOAP_Header('{http://soapinterop.org/echoheader/}echoMeUnknown','string',$string1SOAP_TEST_ACTOR_OTHER);
  230. $test->headers_expect['echoMeUnknown'= array();
  231. $soap_tests[INTEROP_R2GROUPC][=$test;
  232. unset($test);
  233.  
  234.  
  235. ?>

Documentation generated on Mon, 11 Mar 2019 15:06:26 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.