server_round2_base.php 2.6 KB

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