server_round2_groupC.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?
  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 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$
  20. //
  21. class SOAP_Interop_GroupC {
  22. var $method_namespace = 'http://soapinterop.org/echoheader/';
  23. function echoMeStringRequest($string)
  24. {
  25. return new SoapHeader($this->method_namespace, "echoMeStringResponse", $string);
  26. }
  27. function echoMeStructRequest($struct)
  28. {
  29. return new SoapHeader($this->method_namespace, "echoMeStructResponse", $struct);
  30. }
  31. function echoVoid()
  32. {
  33. }
  34. }
  35. $server = new SoapServer((isset($_SERVER['HTTPS'])?"https://":"http://").$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/echoheadersvc.wsdl.php");
  36. $server->setClass("SOAP_Interop_GroupC");
  37. $server->handle();
  38. ?>