server_round2_base.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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> Port to PEAR and more |
  17. // | Authors: Dietrich Ayala <dietrich@ganx4.com> Original Author |
  18. // +----------------------------------------------------------------------+
  19. class SOAP_Interop_Base {
  20. function echoString($inputString)
  21. {
  22. return $inputString;
  23. }
  24. function echoStringArray($inputStringArray)
  25. {
  26. return $inputStringArray;
  27. }
  28. function echoInteger($inputInteger)
  29. {
  30. return $inputInteger;
  31. }
  32. function echoIntegerArray($inputIntegerArray)
  33. {
  34. return $inputIntegerArray;
  35. }
  36. function echoFloat($inputFloat)
  37. {
  38. return $inputFloat;
  39. }
  40. function echoFloatArray($inputFloatArray)
  41. {
  42. return $inputFloatArray;
  43. }
  44. function echoStruct($inputStruct)
  45. {
  46. return $inputStruct;
  47. }
  48. function echoStructArray($inputStructArray)
  49. {
  50. return $inputStructArray;
  51. }
  52. function echoVoid()
  53. {
  54. return NULL;
  55. }
  56. function echoBase64($b_encoded)
  57. {
  58. return $b_encoded;
  59. }
  60. function echoDate($timeInstant)
  61. {
  62. return $timeInstant;
  63. }
  64. function echoHexBinary($hb)
  65. {
  66. return $hb;
  67. }
  68. function echoDecimal($dec)
  69. {
  70. return $dec;
  71. }
  72. function echoBoolean($boolean)
  73. {
  74. return $boolean;
  75. }
  76. function echoMimeAttachment($stuff)
  77. {
  78. return new SOAP_Attachment('return','application/octet-stream',NULL,$stuff);
  79. }
  80. }
  81. $server = new SoapServer((isset($_SERVER['HTTPS'])?"https://":"http://").$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/interop.wsdl.php");
  82. $server->setClass("SOAP_Interop_Base");
  83. $server->handle();
  84. ?>