Annotation of embedaddon/php/ext/soap/tests/server019.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
2: SOAP Server 19: compressed request (gzip)
3: --SKIPIF--
4: <?php
5: if (php_sapi_name()=='cli') echo 'skip';
6: require_once('skipif.inc');
7: if (!extension_loaded('zlib')) die('skip zlib extension not available');
8: ?>
9: --INI--
10: precision=14
1.1.1.2 ! misho 11: --GZIP_POST--
1.1 misho 12: <SOAP-ENV:Envelope
13: SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
14: xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
15: xmlns:xsd="http://www.w3.org/2001/XMLSchema"
16: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
17: xmlns:si="http://soapinterop.org/xsd">
18: <SOAP-ENV:Body>
19: <ns1:test xmlns:ns1="http://testuri.org" />
20: </SOAP-ENV:Body>
21: </SOAP-ENV:Envelope>
22: --FILE--
23: <?php
24: function test() {
25: return "Hello World";
26: }
27:
28: $server = new soapserver(null,array('uri'=>"http://testuri.org"));
29: $server->addfunction("test");
30: $server->handle();
31: echo "ok\n";
32: ?>
33: --EXPECT--
34: <?xml version="1.0" encoding="UTF-8"?>
35: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://testuri.org" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:testResponse><return xsi:type="xsd:string">Hello World</return></ns1:testResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
36: ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>