diff options
author | SVN Migration <svn@php.net> | 2004-01-25 12:03:25 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2004-01-25 12:03:25 +0000 |
commit | 22476b36ce621bdd115493bab84cbe706e422a7c (patch) | |
tree | 1124d1c5af68860a78c2252bb0dac63c9f18156e /ext/soap/tests | |
parent | eb7aca4ea896b09cb9afc2466a46f4720acc4a4e (diff) | |
download | php-git-php_ibase_before_split.tar.gz |
This commit was manufactured by cvs2svn to create tagphp_ibase_before_split
'php_ibase_before_split'.
Diffstat (limited to 'ext/soap/tests')
-rw-r--r-- | ext/soap/tests/server001.phpt | 33 | ||||
-rw-r--r-- | ext/soap/tests/server002.phpt | 37 | ||||
-rw-r--r-- | ext/soap/tests/server003.phpt | 32 | ||||
-rw-r--r-- | ext/soap/tests/server004.phpt | 40 | ||||
-rw-r--r-- | ext/soap/tests/server005.phpt | 36 | ||||
-rw-r--r-- | ext/soap/tests/server006.phpt | 42 | ||||
-rw-r--r-- | ext/soap/tests/server007.phpt | 26 | ||||
-rw-r--r-- | ext/soap/tests/server008.phpt | 29 | ||||
-rw-r--r-- | ext/soap/tests/server009.phpt | 66 | ||||
-rw-r--r-- | ext/soap/tests/server010.phpt | 61 | ||||
-rw-r--r-- | ext/soap/tests/server011.phpt | 26 | ||||
-rw-r--r-- | ext/soap/tests/server012.phpt | 20 | ||||
-rw-r--r-- | ext/soap/tests/server013.phpt | 44 | ||||
-rw-r--r-- | ext/soap/tests/server014.phpt | 37 | ||||
-rw-r--r-- | ext/soap/tests/skipif.inc | 3 | ||||
-rw-r--r-- | ext/soap/tests/test.wsdl | 55 |
16 files changed, 0 insertions, 587 deletions
diff --git a/ext/soap/tests/server001.phpt b/ext/soap/tests/server001.phpt deleted file mode 100644 index 462a8960aa..0000000000 --- a/ext/soap/tests/server001.phpt +++ /dev/null @@ -1,33 +0,0 @@ ---TEST-- -SOAP Server 1: new/addfunction/handle ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---FILE-- -<?php -function test() { - return "Hello World"; -} - -$server = new soapserver("http://testuri.org"); -$server->addfunction("test"); - -$HTTP_RAW_POST_DATA = <<<EOF -<?xml version="1.0" encoding="ISO-8859-1"?> -<SOAP-ENV:Envelope - SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" - xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:si="http://soapinterop.org/xsd"> - <SOAP-ENV:Body> - <ns1:test xmlns:ns1="http://testuri.org" /> - </SOAP-ENV:Body> -</SOAP-ENV:Envelope> -EOF; -$server->handle(); -echo "ok\n"; -?> ---EXPECT-- -<?xml version="1.0" encoding="UTF-8"?> -<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:apache="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body xmlns:ns1="http://testuri.org"><ns1:testResponse><return xsi:type="xsd:string">Hello World</return></ns1:testResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> -ok diff --git a/ext/soap/tests/server002.phpt b/ext/soap/tests/server002.phpt deleted file mode 100644 index 757fbf5437..0000000000 --- a/ext/soap/tests/server002.phpt +++ /dev/null @@ -1,37 +0,0 @@ ---TEST-- -SOAP Server 2: function with parameters and result ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---FILE-- -<?php -function Add($x,$y) { - return $x+$y; -} - -$server = new soapserver("http://testuri.org"); -$server->addfunction("Add"); - -$HTTP_RAW_POST_DATA = <<<EOF -<?xml version="1.0" encoding="ISO-8859-1"?> -<SOAP-ENV:Envelope - SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" - xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:si="http://soapinterop.org/xsd"> - <SOAP-ENV:Body> - <ns1:Add xmlns:ns1="http://testuri.org"> - <x xsi:type="xsd:int">22</x> - <y xsi:type="xsd:int">33</y> - </ns1:Add> - </SOAP-ENV:Body> -</SOAP-ENV:Envelope> -EOF; - -$server->handle(); -echo "ok\n"; -?> ---EXPECT-- -<?xml version="1.0" encoding="UTF-8"?> -<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:apache="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body xmlns:ns1="http://testuri.org"><ns1:AddResponse><return xsi:type="xsd:int">55</return></ns1:AddResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> -ok diff --git a/ext/soap/tests/server003.phpt b/ext/soap/tests/server003.phpt deleted file mode 100644 index d47fc30d0d..0000000000 --- a/ext/soap/tests/server003.phpt +++ /dev/null @@ -1,32 +0,0 @@ ---TEST-- -SOAP Server 3: all functions ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---FILE-- -<?php -$server = new soapserver("http://testuri.org"); -$server->addfunction(SOAP_FUNCTIONS_ALL); - -$HTTP_RAW_POST_DATA = <<<EOF -<?xml version="1.0" encoding="ISO-8859-1"?> -<SOAP-ENV:Envelope - SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" - xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:si="http://soapinterop.org/xsd"> - <SOAP-ENV:Body> - <ns1:strlen xmlns:ns1="http://testuri.org"> - <x xsi:type="xsd:string">Hello World</x> - </ns1:strlen> - </SOAP-ENV:Body> -</SOAP-ENV:Envelope> -EOF; - -$server->handle(); -echo "ok\n"; -?> ---EXPECT-- -<?xml version="1.0" encoding="UTF-8"?> -<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:apache="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body xmlns:ns1="http://testuri.org"><ns1:strlenResponse><return xsi:type="xsd:int">11</return></ns1:strlenResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> -ok diff --git a/ext/soap/tests/server004.phpt b/ext/soap/tests/server004.phpt deleted file mode 100644 index 92b714f513..0000000000 --- a/ext/soap/tests/server004.phpt +++ /dev/null @@ -1,40 +0,0 @@ ---TEST-- -SOAP Server 4: addfunctions ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---FILE-- -<?php -function Add($x,$y) { - return $x+$y; -} -function Sub($x,$y) { - return $x-$y; -} - -$server = new soapserver("http://testuri.org"); -$server->addfunction(array("Sub","Add")); - -$HTTP_RAW_POST_DATA = <<<EOF -<?xml version="1.0" encoding="ISO-8859-1"?> -<SOAP-ENV:Envelope - SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" - xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:si="http://soapinterop.org/xsd"> - <SOAP-ENV:Body> - <ns1:Add xmlns:ns1="http://testuri.org"> - <x xsi:type="xsd:int">22</x> - <y xsi:type="xsd:int">33</y> - </ns1:Add> - </SOAP-ENV:Body> -</SOAP-ENV:Envelope> -EOF; - -$server->handle(); -echo "ok\n"; -?> ---EXPECT-- -<?xml version="1.0" encoding="UTF-8"?> -<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:apache="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body xmlns:ns1="http://testuri.org"><ns1:AddResponse><return xsi:type="xsd:int">55</return></ns1:AddResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> -ok diff --git a/ext/soap/tests/server005.phpt b/ext/soap/tests/server005.phpt deleted file mode 100644 index 476422bd0b..0000000000 --- a/ext/soap/tests/server005.phpt +++ /dev/null @@ -1,36 +0,0 @@ ---TEST-- -SOAP Server 5: setclass ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---FILE-- -<?php -class Foo { - function test() { - return "Hello World"; - } -} - -$server = new soapserver("http://testuri.org"); -$server->setclass("Foo"); - -$HTTP_RAW_POST_DATA = <<<EOF -<?xml version="1.0" encoding="ISO-8859-1"?> -<SOAP-ENV:Envelope - SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" - xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:si="http://soapinterop.org/xsd"> - <SOAP-ENV:Body> - <ns1:test xmlns:ns1="http://testuri.org" /> - </SOAP-ENV:Body> -</SOAP-ENV:Envelope> -EOF; - -$server->handle(); -echo "ok\n"; -?> ---EXPECT-- -<?xml version="1.0" encoding="UTF-8"?> -<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:apache="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body xmlns:ns1="http://testuri.org"><ns1:testResponse><return xsi:type="xsd:string">Hello World</return></ns1:testResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> -ok diff --git a/ext/soap/tests/server006.phpt b/ext/soap/tests/server006.phpt deleted file mode 100644 index 88c855e82e..0000000000 --- a/ext/soap/tests/server006.phpt +++ /dev/null @@ -1,42 +0,0 @@ ---TEST-- -SOAP Server 6: setclass with constructor ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---FILE-- -<?php -class Foo { - private $str = ""; - - function Foo($str) { - $this->str = $str . " World"; - } - - function test() { - return $this->str; - } -} - -$server = new soapserver("http://testuri.org"); -$server->setclass("Foo","Hello"); - -$HTTP_RAW_POST_DATA = <<<EOF -<?xml version="1.0" encoding="ISO-8859-1"?> -<SOAP-ENV:Envelope - SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" - xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:si="http://soapinterop.org/xsd"> - <SOAP-ENV:Body> - <ns1:test xmlns:ns1="http://testuri.org" /> - </SOAP-ENV:Body> -</SOAP-ENV:Envelope> -EOF; - -$server->handle(); -echo "ok\n"; -?> ---EXPECT-- -<?xml version="1.0" encoding="UTF-8"?> -<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:apache="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body xmlns:ns1="http://testuri.org"><ns1:testResponse><return xsi:type="xsd:string">Hello World</return></ns1:testResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> -ok diff --git a/ext/soap/tests/server007.phpt b/ext/soap/tests/server007.phpt deleted file mode 100644 index 113ddac4a3..0000000000 --- a/ext/soap/tests/server007.phpt +++ /dev/null @@ -1,26 +0,0 @@ ---TEST-- -SOAP Server 7: addfunction and getfunctions ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---FILE-- -<?php -function Add($x,$y) { - return $x+$y; -} -function Sub($x,$y) { - return $x-$y; -} - -$server = new soapserver("http://testuri.org"); -$server->addfunction(array("Sub","Add")); -var_dump($server->getfunctions()); -echo "ok\n"; -?> ---EXPECT-- -array(2) { - [0]=> - string(3) "Sub" - [1]=> - string(3) "Add" -} -ok diff --git a/ext/soap/tests/server008.phpt b/ext/soap/tests/server008.phpt deleted file mode 100644 index 73f91f3891..0000000000 --- a/ext/soap/tests/server008.phpt +++ /dev/null @@ -1,29 +0,0 @@ ---TEST-- -SOAP Server 8: setclass and getfunctions ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---FILE-- -<?php -class Foo { - - function Foo() { - } - - function test() { - return $this->str; - } -} - -$server = new soapserver("http://testuri.org"); -$server->setclass("Foo"); -var_dump($server->getfunctions()); -echo "ok\n"; -?> ---EXPECT-- -array(2) { - [0]=> - string(3) "Foo" - [1]=> - string(4) "test" -} -ok diff --git a/ext/soap/tests/server009.phpt b/ext/soap/tests/server009.phpt deleted file mode 100644 index 661fa7dc21..0000000000 --- a/ext/soap/tests/server009.phpt +++ /dev/null @@ -1,66 +0,0 @@ ---TEST-- -SOAP Server 9: setclass and setpersistence(SOAP_PERSISTENCE_SESSION) ---SKIPIF-- -<?php - require_once('skipif.inc'); - if (!extension_loaded('session')) { - die('skip this test needs session extension'); - } -?> ---FILE-- -<?php -class foo { - private $sum = 0; - - function Sum($num) { - return $this->sum += $num; - } -} - -$server = new soapserver("http://testuri.org"); -$server->setclass("foo"); -$server->setpersistence(SOAP_PERSISTENCE_SESSION); - -ob_start(); -$HTTP_RAW_POST_DATA = <<<EOF -<?xml version="1.0" encoding="ISO-8859-1"?> -<SOAP-ENV:Envelope - SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" - xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:si="http://soapinterop.org/xsd"> - <SOAP-ENV:Body> - <ns1:Sum xmlns:ns1="http://testuri.org"> - <num xsi:type="xsd:int">5</num> - </ns1:Sum> - </SOAP-ENV:Body> -</SOAP-ENV:Envelope> -EOF; -$server->handle(); -ob_clean(); - -$HTTP_RAW_POST_DATA = <<<EOF -<?xml version="1.0" encoding="ISO-8859-1"?> -<SOAP-ENV:Envelope - SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" - xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:si="http://soapinterop.org/xsd"> - <SOAP-ENV:Body> - <ns1:Sum xmlns:ns1="http://testuri.org"> - <num xsi:type="xsd:int">3</num> - </ns1:Sum> - </SOAP-ENV:Body> -</SOAP-ENV:Envelope> -EOF; -$server->handle(); -ob_end_flush(); - -echo "ok\n"; -?> ---EXPECT-- -<?xml version="1.0" encoding="UTF-8"?> -<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:apache="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body xmlns:ns1="http://testuri.org"><ns1:SumResponse><return xsi:type="xsd:int">8</return></ns1:SumResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> -ok diff --git a/ext/soap/tests/server010.phpt b/ext/soap/tests/server010.phpt deleted file mode 100644 index e25c9a3158..0000000000 --- a/ext/soap/tests/server010.phpt +++ /dev/null @@ -1,61 +0,0 @@ ---TEST-- -SOAP Server 10: setclass and setpersistence(SOAP_PERSISTENCE_REQUEST) ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---FILE-- -<?php -class foo { - private $sum = 0; - - function Sum($num) { - return $this->sum += $num; - } -} - -$server = new soapserver("http://testuri.org"); -$server->setclass("foo"); -$server->setpersistence(SOAP_PERSISTENCE_REQUEST); - - -ob_start(); -$HTTP_RAW_POST_DATA = <<<EOF -<?xml version="1.0" encoding="ISO-8859-1"?> -<SOAP-ENV:Envelope - SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" - xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:si="http://soapinterop.org/xsd"> - <SOAP-ENV:Body> - <ns1:Sum xmlns:ns1="http://testuri.org"> - <num xsi:type="xsd:int">5</num> - </ns1:Sum> - </SOAP-ENV:Body> -</SOAP-ENV:Envelope> -EOF; -$server->handle(); -ob_clean(); - -$HTTP_RAW_POST_DATA = <<<EOF -<?xml version="1.0" encoding="ISO-8859-1"?> -<SOAP-ENV:Envelope - SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" - xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:si="http://soapinterop.org/xsd"> - <SOAP-ENV:Body> - <ns1:Sum xmlns:ns1="http://testuri.org"> - <num xsi:type="xsd:int">3</num> - </ns1:Sum> - </SOAP-ENV:Body> -</SOAP-ENV:Envelope> -EOF; -$server->handle(); -ob_end_flush(); -echo "ok\n"; -?> ---EXPECT-- -<?xml version="1.0" encoding="UTF-8"?> -<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:apache="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body xmlns:ns1="http://testuri.org"><ns1:SumResponse><return xsi:type="xsd:int">3</return></ns1:SumResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> -ok diff --git a/ext/soap/tests/server011.phpt b/ext/soap/tests/server011.phpt deleted file mode 100644 index d5f6d3703d..0000000000 --- a/ext/soap/tests/server011.phpt +++ /dev/null @@ -1,26 +0,0 @@ ---TEST-- -SOAP Server 11: bind ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---GET-- -wsdl ---FILE-- -<?php -function Add($x,$y) { - return $x+$y; -} - -$server = new soapserver("http://testuri.org"); -$server->bind(dirname(__FILE__)."/test.wsdl"); -ob_start(); -$server->handle(); -$wsdl = ob_get_contents(); -ob_end_clean(); -if ($wsdl == file_get_contents(dirname(__FILE__)."/test.wsdl")) { - echo "ok\n"; -} else { - echo "fail\n"; -} -?> ---EXPECT-- -ok diff --git a/ext/soap/tests/server012.phpt b/ext/soap/tests/server012.phpt deleted file mode 100644 index 6a697ec1a2..0000000000 --- a/ext/soap/tests/server012.phpt +++ /dev/null @@ -1,20 +0,0 @@ ---TEST-- -SOAP Server 12: WSDL generation ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---GET-- -WSDL ---FILE-- -<?php -function Add($x,$y) { - return $x+$y; -} - -$server = new soapserver("http://testuri.org"); -$server->addfunction("Add"); -$server->handle(); -echo "ok\n"; -?> ---EXPECT-- -<?xml version="1.0" encoding="UTF-8"?> -<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:apache="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><SOAP-ENV:Fault xsi:type="SOAP-ENC:Struct"><faultstring xsi:type="xsd:string">WSDL generation is not supported yet</faultstring><faultcode xsi:type="xsd:string">SOAP-ENV:Server</faultcode><detail xsi:nil="1"/></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope> diff --git a/ext/soap/tests/server013.phpt b/ext/soap/tests/server013.phpt deleted file mode 100644 index d2e845012c..0000000000 --- a/ext/soap/tests/server013.phpt +++ /dev/null @@ -1,44 +0,0 @@ ---TEST-- -SOAP Server 13: array handling ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---FILE-- -<?php -function Sum($a) { - $sum = 0; - if (is_array($a)) { - foreach($a as $val) { - $sum += $val; - } - } - return $sum; -} - -$server = new soapserver("http://testuri.org"); -$server->addfunction("Sum"); - -$HTTP_RAW_POST_DATA = <<<EOF -<?xml version="1.0" encoding="UTF-8"?> -<SOAP-ENV:Envelope - xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" - SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" - xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - <SOAP-ENV:Body xmlns:ns1="http://linuxsrv.home/~dmitry/soap/"> - <ns1:sum> - <param0 SOAP-ENC:arrayType="xsd:int[2]" xsi:type="SOAP-ENC:Array"> - <val xsi:type="xsd:int">3</val> - <val xsi:type="xsd:int">5</val> - </param0> - </ns1:sum> - </SOAP-ENV:Body> -</SOAP-ENV:Envelope> -EOF; -$server->handle(); -echo "ok\n"; -?> ---EXPECT-- -<?xml version="1.0" encoding="UTF-8"?> -<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:apache="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body xmlns:ns1="http://testuri.org"><ns1:sumResponse><return xsi:type="xsd:int">8</return></ns1:sumResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> -ok diff --git a/ext/soap/tests/server014.phpt b/ext/soap/tests/server014.phpt deleted file mode 100644 index d81c3652a4..0000000000 --- a/ext/soap/tests/server014.phpt +++ /dev/null @@ -1,37 +0,0 @@ ---TEST-- -SOAP Server 14: fault ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---FILE-- -<?php -function Add($x,$y) { - undefined_function_x(); - return $x+$y; -} - -$server = new soapserver("http://testuri.org"); -$server->addfunction("Add"); - -$HTTP_RAW_POST_DATA = <<<EOF -<?xml version="1.0" encoding="ISO-8859-1"?> -<SOAP-ENV:Envelope - SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" - xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:si="http://soapinterop.org/xsd"> - <SOAP-ENV:Body> - <ns1:Add xmlns:ns1="http://testuri.org"> - <x xsi:type="xsd:int">22</x> - <y xsi:type="xsd:int">33</y> - </ns1:Add> - </SOAP-ENV:Body> -</SOAP-ENV:Envelope> -EOF; - -$server->handle(); -echo "ok\n"; -?> ---EXPECT-- -<?xml version="1.0" encoding="UTF-8"?> -<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:apache="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><SOAP-ENV:Fault xsi:type="SOAP-ENC:Struct"><faultstring xsi:type="xsd:string">Call to undefined function undefined_function_x()</faultstring><faultcode xsi:type="xsd:string">SOAP-ENV:Server</faultcode><detail xsi:nil="1"/></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope> diff --git a/ext/soap/tests/skipif.inc b/ext/soap/tests/skipif.inc deleted file mode 100644 index fa8574e6a2..0000000000 --- a/ext/soap/tests/skipif.inc +++ /dev/null @@ -1,3 +0,0 @@ -<?php - if (!extension_loaded('soap')) die('skip soap extension not available'); -?> diff --git a/ext/soap/tests/test.wsdl b/ext/soap/tests/test.wsdl deleted file mode 100644 index 0740b7db62..0000000000 --- a/ext/soap/tests/test.wsdl +++ /dev/null @@ -1,55 +0,0 @@ -<?xml version="1.0" ?> -<definitions - xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" - 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/" - xmlns:si="http://soapinterop.org/xsd" - xmlns:tns="http://linuxsrv.home/~dmitry/soap/test.wsdl" - xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" - xmlns="http://schemas.xmlsoap.org/wsdl/" - targetNamespace="http://linuxsrv.home/~dmitry/soap/test.wsdl"> - - <types> - <xsd:schema targetNamespace="http://linuxsrv.home/~dmitry/soap/test.wsdl"> - <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" /> - <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/" /> - </xsd:schema> - </types> - - <message name="AddRequest"> - <part name="x" type="xsd:double" /> - <part name="y" type="xsd:double" /> - </message> - <message name="AddResponse"> - <part name="result" type="xsd:double" /> - </message> - - <portType name="TestServicePortType"> - <operation name="Add"> - <input message="tns:AddRequest" /> - <output message="tns:AddResponse" /> - </operation> - </portType> - - <binding name="TestServiceBinding" type="tns:TestServicePortType"> - <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" /> - <operation name="Add"> - <soap:operation soapAction="Add" style="rpc" /> - <input> - <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> - </input> - <output> - <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> - </output> - </operation> - </binding> - - <service name="TestService"> - <port name="TestServicePort" binding="tns:TestServiceBinding"> - <soap:address location="http://linuxsrv.home/~dmitry/soap/soap_server.php" /> - </port> - </service> - -</definitions> |