Annotation of embedaddon/php/ext/soap/tests/server020.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SOAP Server 20: compressed request (deflate)
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
11: --POST--
12: <?xml version="1.0" encoding="ISO-8859-1"?>
13: <SOAP-ENV:Envelope
14: SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
15: xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
16: xmlns:xsd="http://www.w3.org/2001/XMLSchema"
17: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18: xmlns:si="http://soapinterop.org/xsd">
19: <SOAP-ENV:Body>
20: <ns1:test xmlns:ns1="http://testuri.org" />
21: </SOAP-ENV:Body>
22: </SOAP-ENV:Envelope>
23: --DEFLATE_POST--
24: 1
25: --FILE--
26: <?php
27: function test() {
28: return "Hello World";
29: }
30:
31: $server = new soapserver(null,array('uri'=>"http://testuri.org"));
32: $server->addfunction("test");
33: $server->handle();
34: echo "ok\n";
35: ?>
36: --EXPECT--
37: <?xml version="1.0" encoding="UTF-8"?>
38: <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>
39: ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>