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

Source for file server_Round3GroupDImport1.php

Documentation is available at server_Round3GroupDImport1.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: server_Round3GroupDImport1.php,v 1.5 2007/01/22 14:53:22 yunosh Exp $
  20. //
  21. require_once 'SOAP/Server.php';
  22. require_once 'params_classes.php';
  23.  
  24. // http://www.whitemesa.com/r3/interop3.html
  25. // http://www.whitemesa.com/r3/plan.html
  26.  
  27. class SOAP_Interop_GroupDImport1 {
  28.  
  29.     function echoString($inputString)
  30.     {
  31.         return new SOAP_Value('Result''string'$inputString);
  32.     }
  33. }
  34.  
  35. // http://www.whitemesa.com/r3/interop3.html
  36. // http://www.whitemesa.com/r3/plan.html
  37.  
  38. $groupd = new SOAP_Interop_GroupDImport1();
  39. $server = new SOAP_Server();
  40. $server->_auto_translation = true;
  41.  
  42. $server->addObjectMap($groupd'http://soapinterop/echoString/');
  43.  
  44. $server->bind('http://localhost/soap_interop/wsdl/import1.wsdl.php');
  45. if (isset($_SERVER['SERVER_NAME'])) {
  46.     $server->service(isset($HTTP_RAW_POST_DATA$HTTP_RAW_POST_DATA : null);
  47. else {
  48.     // allows command line testing of specific request
  49.     $test '<?xml version="1.0" encoding="UTF-8"?>
  50.  
  51. <SOAP-ENV:Envelope  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  52.  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  53.  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  54.  xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
  55.  xmlns:ns4="http://soapinterop/echoString/"
  56.  SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  57. <SOAP-ENV:Body>
  58.  
  59. <ns4:echoString>
  60. <x xsi:type="xsd:string">Hello World</x></ns4:echoString>
  61. </SOAP-ENV:Body>
  62. </SOAP-ENV:Envelope>';
  63.     $server->service($test''true);
  64. }

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