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

Source for file server_Round2GroupB.php

Documentation is available at server_Round2GroupB.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>   Port to PEAR and more   |
  17. // | Authors: Dietrich Ayala <dietrich@ganx4.com> Original Author         |
  18. // +----------------------------------------------------------------------+
  19. //
  20. // $Id: server_Round2GroupB.php,v 1.5 2003/08/05 16:56:43 arnaud Exp $
  21. //
  22. require_once 'SOAP/Server.php';
  23. require_once 'interop_Round2GroupB.php';
  24.  
  25. $groupb =new SOAP_Interop_GroupB();
  26. $server =new SOAP_Server;
  27. $server->_auto_translation = true;
  28.  
  29. $server->addObjectMap($groupb,'http://soapinterop.org/');
  30. $server->service(isset($HTTP_RAW_POST_DATA)?$HTTP_RAW_POST_DATA:NULL);
  31.  
  32. $test '<?xml version="1.0" encoding="UTF-8"?>
  33.  
  34. <SOAP-ENV:Envelope  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  35.  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  36.  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  37.  xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
  38.  xmlns:ns4="http://soapinterop.org/"
  39.  SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  40. <SOAP-ENV:Body>
  41.  
  42. <ns4:echoNestedStruct>
  43. <inputStruct>
  44. <varString xsi:type="xsd:string">arg</varString>
  45. <varInt xsi:type="xsd:int">34</varInt>
  46. <varFloat xsi:type="xsd:float">325.325</varFloat>
  47. <varStruct>
  48. <varString xsi:type="xsd:string">arg</varString>
  49. <varInt xsi:type="xsd:int">34</varInt>
  50. <varFloat xsi:type="xsd:float">325.325</varFloat></varStruct></inputStruct></ns4:echoNestedStruct>
  51. </SOAP-ENV:Body>
  52. </SOAP-ENV:Envelope>';
  53. #$server->service($test,'',TRUE);
  54.  
  55. ?>

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