server_round2_groupC.php 1.7 KB

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