From: George Schlossnagle Date: Sun, 3 Apr 2005 15:51:22 +0000 (+0000) Subject: actually commit the SOAP interop tests this time. X-Git-Tag: php-5.0.1b1~626 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1d25fc5c7b62f763b66a4c745d5e29894419aca9;p=php actually commit the SOAP interop tests this time. --- diff --git a/ext/soap/tests/interop/Round2/Base/phpt.40ea5092ecda9 b/ext/soap/tests/interop/Round2/Base/phpt.40ea5092ecda9 new file mode 100644 index 0000000000..352c84bcbe --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/phpt.40ea5092ecda9 @@ -0,0 +1 @@ + diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_001p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_001p.phpt new file mode 100644 index 0000000000..f88cdddbf0 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_001p.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 001 (php/direct): echoString +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoString", array("Hello World!"), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +Hello World! + +Hello World! +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_001s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_001s.phpt new file mode 100644 index 0000000000..a25eea52c3 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_001s.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 001 (soap/direct): echoString +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoString", array(new SoapParam(new SoapVar("Hello World!",XSD_STRING),"inputString")), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +Hello World! + +Hello World! +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_001w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_001w.phpt new file mode 100644 index 0000000000..ea9dc86a18 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_001w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 001 (php/wsdl): echoString +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoString("Hello World!"); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +Hello World! + +Hello World! +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_002p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_002p.phpt new file mode 100644 index 0000000000..a5c62425df --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_002p.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 002 (php/direct): echoString(empty) +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoString", array(""), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_002s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_002s.phpt new file mode 100644 index 0000000000..3a256241a1 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_002s.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 002 (soap/direct): echoString(empty) +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoString", array(new SoapParam(new SoapVar("",XSD_STRING),"inputString")), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_002w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_002w.phpt new file mode 100644 index 0000000000..4761df605b --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_002w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 002 (php/wsdl): echoString(empty) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoString(""); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_003p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_003p.phpt new file mode 100644 index 0000000000..353c547757 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_003p.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 003 (php/direct): echoString(NULL) +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoString", array(NULL), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +ok \ No newline at end of file diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_003s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_003s.phpt new file mode 100644 index 0000000000..ef5211e249 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_003s.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 003 (soap/direct): echoString(NULL) +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoString", array(new SoapParam(new SoapVar(NULL,XSD_STRING),"inputString")), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +ok \ No newline at end of file diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_003w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_003w.phpt new file mode 100644 index 0000000000..88489bb410 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_003w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 003 (php/wsdl): echoString(NULL) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoString(NULL); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +ok \ No newline at end of file diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_004p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_004p.phpt new file mode 100644 index 0000000000..cb56ce6719 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_004p.phpt @@ -0,0 +1,21 @@ +--TEST-- +SOAP Interop Round2 base 004 (php/direct): echoString(entities) +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoString", array(">,<,&,\",',\\,\n"), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +>,<,&,",',\, + + +>,<,&,",',\, + +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_004s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_004s.phpt new file mode 100644 index 0000000000..20c899e7eb --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_004s.phpt @@ -0,0 +1,21 @@ +--TEST-- +SOAP Interop Round2 base 004 (soap/direct): echoString(entities) +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoString", array(new SoapParam(new SoapVar(">,<,&,\",',\\,\n",XSD_STRING),"inputString")), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +>,<,&,",',\, + + +>,<,&,",',\, + +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_004w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_004w.phpt new file mode 100644 index 0000000000..69b3afd955 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_004w.phpt @@ -0,0 +1,21 @@ +--TEST-- +SOAP Interop Round2 base 004 (php/wsdl): echoString(entities) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoString(">,<,&,\",',\\,\n"); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +>,<,&,",',\, + + +>,<,&,",',\, + +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_005p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_005p.phpt new file mode 100644 index 0000000000..d8f91d328e --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_005p.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 005 (php/direct): echoString(utf-8) +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoString", array(utf8_encode('ỗÈéóÒ₧⅜ỗỸ')), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +ỗÈéóÒ₧⅜ỗỸ + +ỗÈéóÒ₧⅜ỗỸ +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_005s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_005s.phpt new file mode 100644 index 0000000000..116e14faac --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_005s.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 005 (soap/direct): echoString(utf-8) +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoString", array(new SoapParam(new SoapVar(utf8_encode('ỗÈéóÒ₧⅜ỗỸ'),XSD_STRING),"inputString")), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +ỗÈéóÒ₧⅜ỗỸ + +ỗÈéóÒ₧⅜ỗỸ +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_005w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_005w.phpt new file mode 100644 index 0000000000..64f03df7b5 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_005w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 005 (php/wsdl): echoString(utf-8) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoString(utf8_encode('ỗÈéóÒ₧⅜ỗỸ')); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +ỗÈéóÒ₧⅜ỗỸ + +ỗÈéóÒ₧⅜ỗỸ +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_006p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_006p.phpt new file mode 100644 index 0000000000..f332a825b0 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_006p.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 006 (php/direct): echoStringArray +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoStringArray", array(array('good','bad')), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +goodbad + +goodbad +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_006s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_006s.phpt new file mode 100644 index 0000000000..de822b2d1c --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_006s.phpt @@ -0,0 +1,23 @@ +--TEST-- +SOAP Interop Round2 base 006 (soap/direct): echoStringArray +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoStringArray", array($param), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +goodbad + +goodbad +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_006w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_006w.phpt new file mode 100644 index 0000000000..7844d4ac87 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_006w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 006 (php/wsdl): echoStringArray +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoStringArray(array('good','bad')); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +goodbad + +goodbad +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_007p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_007p.phpt new file mode 100644 index 0000000000..ddf9879394 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_007p.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 007 (php/direct): echoStringArray(one) +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoStringArray", array(array('good')), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +good + +good +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_007s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_007s.phpt new file mode 100644 index 0000000000..778446a5c1 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_007s.phpt @@ -0,0 +1,22 @@ +--TEST-- +SOAP Interop Round2 base 007 (soap/direct): echoStringArray(one) +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoStringArray", array($param), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +good + +good +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_007w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_007w.phpt new file mode 100644 index 0000000000..89bf6ea5c0 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_007w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 007 (php/wsdl): echoStringArray(one) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoStringArray(array('good')); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +good + +good +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_008p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_008p.phpt new file mode 100644 index 0000000000..28eae3dbd7 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_008p.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 008 (php/direct): echoStringArray(empty) +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoStringArray", array(array()), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_008s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_008s.phpt new file mode 100644 index 0000000000..b23dda44a0 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_008s.phpt @@ -0,0 +1,21 @@ +--TEST-- +SOAP Interop Round2 base 008 (soap/direct): echoStringArray(empty) +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoStringArray", array($param), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_008w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_008w.phpt new file mode 100644 index 0000000000..25de1542a6 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_008w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 008 (php/wsdl): echoStringArray(empty) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoStringArray(array()); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_009p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_009p.phpt new file mode 100644 index 0000000000..77f89af351 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_009p.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 009 (php/direct): echoStringArray(NULL) +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoStringArray", array(NULL), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_009s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_009s.phpt new file mode 100644 index 0000000000..e8478e19b5 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_009s.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP Interop Round2 base 009 (soap/direct): echoStringArray(NULL) +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoStringArray", array($param), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_009w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_009w.phpt new file mode 100644 index 0000000000..34cb728065 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_009w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 009 (php/wsdl): echoStringArray(NULL) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoStringArray(NULL); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_010p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_010p.phpt new file mode 100644 index 0000000000..9c2aa0ff4c --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_010p.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 010 (php/direct): echoInteger +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoInteger", array(34345), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +34345 + +34345 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_010s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_010s.phpt new file mode 100644 index 0000000000..1f012cae9f --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_010s.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 010 (soap/direct): echoInteger +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoInteger", array(new SoapParam(new soapVar(34345, XSD_INT), "inputInteger")), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +34345 + +34345 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_010w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_010w.phpt new file mode 100644 index 0000000000..b32d94f364 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_010w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 010 (php/wsdl): echoInteger +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoInteger(34345); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +34345 + +34345 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_011p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_011p.phpt new file mode 100644 index 0000000000..7a6b1477e7 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_011p.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 011 (php/direct): echoIntegerArray +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoIntegerArray", array(array(1,234324324,2)), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +12343243242 + +12343243242 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_011s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_011s.phpt new file mode 100644 index 0000000000..f892147593 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_011s.phpt @@ -0,0 +1,24 @@ +--TEST-- +SOAP Interop Round2 base 011 (soap/direct): echoIntegerArray +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoIntegerArray", array($param), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +12343243242 + +12343243242 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_011w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_011w.phpt new file mode 100644 index 0000000000..20686b249c --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_011w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 011 (php/wsdl): echoIntegerArray +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoIntegerArray(array(1,234324324,2)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +12343243242 + +12343243242 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_012p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_012p.phpt new file mode 100644 index 0000000000..2da25b261c --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_012p.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 012 (php/direct): echoFloat +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoFloat", array(342.23), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +342.23 + +342.23 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_012s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_012s.phpt new file mode 100644 index 0000000000..bd62edd27a --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_012s.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 012 (soap/direct): echoFloat +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoFloat", array(new SoapParam(new SoapVar(342.23,XSD_FLOAT),"inputFloat")), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +342.23 + +342.23 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_012w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_012w.phpt new file mode 100644 index 0000000000..05aad06c18 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_012w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 012 (php/wsdl): echoFloat +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoFloat(342.23); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +342.23 + +342.23 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_013p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_013p.phpt new file mode 100644 index 0000000000..815b4dffb7 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_013p.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 013 (php/direct): echoFloatArray +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoFloatArray", array(array(1.3223,34.2,325.325)), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1.322334.2325.325 + +1.322334.2325.325 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_013s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_013s.phpt new file mode 100644 index 0000000000..72124be8ab --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_013s.phpt @@ -0,0 +1,24 @@ +--TEST-- +SOAP Interop Round2 base 013 (soap/direct): echoFloatArray +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoFloatArray", array($param), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1.322334.2325.325 + +1.322334.2325.325 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_013w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_013w.phpt new file mode 100644 index 0000000000..e4291ab0d5 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_013w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 013 (php/wsdl): echoFloatArray +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoFloatArray(array(1.3223,34.2,325.325)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1.322334.2325.325 + +1.322334.2325.325 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_014p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_014p.phpt new file mode 100644 index 0000000000..107f953644 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_014p.phpt @@ -0,0 +1,27 @@ +--TEST-- +SOAP Interop Round2 base 014 (php/direct): echoStruct +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} + +$client = new SoapClient(NULL,array("location"=>"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoStruct", array(new SOAPStruct('arg',34,325.325)), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg34325.325 + +arg34325.325 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_014s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_014s.phpt new file mode 100644 index 0000000000..b15dc30d6d --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_014s.phpt @@ -0,0 +1,24 @@ +--TEST-- +SOAP Interop Round2 base 014 (soap/direct): echoStruct +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoStruct", array($param), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg34325.325 + +arg34325.325 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_014w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_014w.phpt new file mode 100644 index 0000000000..8c0f29f2d6 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_014w.phpt @@ -0,0 +1,27 @@ +--TEST-- +SOAP Interop Round2 base 014 (php/wsdl): echoStruct +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} + +$client = new SoapClient(dirname(__FILE__)."/round2_base.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoStruct(new SOAPStruct('arg',34,325.325)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg34325.325 + +arg34325.325 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_015p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_015p.phpt new file mode 100644 index 0000000000..3162c26fdb --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_015p.phpt @@ -0,0 +1,28 @@ +--TEST-- +SOAP Interop Round2 base 015 (php/direct): echoStructArray +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} + +$struct = new SOAPStruct('arg',34,325.325); +$client = new SoapClient(NULL,array("location"=>"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoStructArray", array(array($struct,$struct)), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg34325.325arg34325.325 + +arg34325.325arg34325.325 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_015s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_015s.phpt new file mode 100644 index 0000000000..47a270b5c2 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_015s.phpt @@ -0,0 +1,38 @@ +--TEST-- +SOAP Interop Round2 base 015 (soap/direct): echoStructArray +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} + +$struct = new SoapVar(array( + new SoapVar('arg', XSD_STRING, null, null, 'varString'), + new SoapVar('34', XSD_INT, null, null, 'varInt'), + new SoapVar('325.325', XSD_FLOAT, null, null, 'varFloat') + ),SOAP_ENC_OBJECT,"SOAPStruct","http://soapinterop.org/xsd"); + +$param = new SoapParam(new SoapVar(array( + $struct, + $struct + ),SOAP_ENC_ARRAY,"ArrayOfSOAPStruct","http://soapinterop.org/xsd"), "inputStructArray"); +$struct = new SOAPStruct('arg',34,325.325); +$client = new SoapClient(NULL,array("location"=>"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoStructArray", array($param), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg34325.325arg34325.325 + +arg34325.325arg34325.325 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_015w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_015w.phpt new file mode 100644 index 0000000000..3b7e61da70 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_015w.phpt @@ -0,0 +1,28 @@ +--TEST-- +SOAP Interop Round2 base 015 (php/wsdl): echoStructArray +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} + +$struct = new SOAPStruct('arg',34,325.325); +$client = new SoapClient(dirname(__FILE__)."/round2_base.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoStructArray(array($struct,$struct)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg34325.325arg34325.325 + +arg34325.325arg34325.325 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_016p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_016p.phpt new file mode 100644 index 0000000000..ab00416ea9 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_016p.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 016 (php/direct): echoVoid +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoVoid", array(), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_016s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_016s.phpt new file mode 100644 index 0000000000..e64fde8072 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_016s.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 016 (soap/direct): echoVoid +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoVoid", array(), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_016w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_016w.phpt new file mode 100644 index 0000000000..b3647a594a --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_016w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 016 (php/wsdl): echoVoid +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoVoid(); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_017p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_017p.phpt new file mode 100644 index 0000000000..92261b6266 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_017p.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 017 (php/direct): echoBase64 +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoBase64", array('TmVicmFza2E='), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +TmVicmFza2E= + +TmVicmFza2E= +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_017s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_017s.phpt new file mode 100644 index 0000000000..21b5f61a7a --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_017s.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 017 (soap/direct): echoBase64 +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoBase64", array(new SoapParam(new SoapVar('TmVicmFza2E=',XSD_BASE64BINARY),"inputBase64")), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +TmVicmFza2E= + +TmVicmFza2E= +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_017w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_017w.phpt new file mode 100644 index 0000000000..af351b59e8 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_017w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 017 (php/wsdl): echoBase64 +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoBase64('TmVicmFza2E='); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +TmVicmFza2E= + +TmVicmFza2E= +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_018p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_018p.phpt new file mode 100644 index 0000000000..a42b32871b --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_018p.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 018 (php/direct): echoHexBinary +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoHexBinary", array('736F61707834'), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +736F61707834 + +736F61707834 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_018s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_018s.phpt new file mode 100644 index 0000000000..0d2f17c6cc --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_018s.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 018 (soap/direct): echoHexBinary +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoHexBinary", array(new SoapParam(new SoapVar('736F61707834',XSD_HEXBINARY),"inputHexBinary")), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +736F61707834 + +736F61707834 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_018w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_018w.phpt new file mode 100644 index 0000000000..4df9b4f20e --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_018w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 018 (php/wsdl): echoHexBinary +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoHexBinary('736F61707834'); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +736F61707834 + +736F61707834 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_019p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_019p.phpt new file mode 100644 index 0000000000..a767301d67 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_019p.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 019 (php/direct): echoDecimal +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoDecimal", array('12345.67890'), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +12345.67890 + +12345.67890 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_019s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_019s.phpt new file mode 100644 index 0000000000..56bea8b4e8 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_019s.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 019 (soap/direct): echoDecimal +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoDecimal", array(new SoapParam(new SoapVar('12345.67890',XSD_DECIMAL), "inputDecimal")), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +12345.67890 + +12345.67890 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_019w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_019w.phpt new file mode 100644 index 0000000000..3f561557b3 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_019w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 019 (php/wsdl): echoDecimal +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoDecimal('12345.67890'); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +12345.67890 + +12345.67890 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_020p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_020p.phpt new file mode 100644 index 0000000000..4afe922e85 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_020p.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 020 (php/direct): echoDate +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoDate", array('2001-05-24T17:31:41Z'), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +2001-05-24T17:31:41Z + +2001-05-24T17:31:41Z +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_020s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_020s.phpt new file mode 100644 index 0000000000..6ced7482ad --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_020s.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 020 (soap/direct): echoDate +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoDate", array(new SoapParam(new SoapVar('2001-05-24T17:31:41Z', XSD_DATETIME), "inputDate")), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +2001-05-24T17:31:41Z + +2001-05-24T17:31:41Z +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_020w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_020w.phpt new file mode 100644 index 0000000000..47d3a9d783 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_020w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 020 (php/wsdl): echoDate +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoDate('2001-05-24T17:31:41Z'); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +2001-05-24T17:31:41Z + +2001-05-24T17:31:41Z +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_021p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_021p.phpt new file mode 100644 index 0000000000..132cd0bcb4 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_021p.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 021 (php/direct): echoBoolean +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoBoolean", array(true), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1 + +1 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_021s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_021s.phpt new file mode 100644 index 0000000000..fce28ed86e --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_021s.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 021 (soap/direct): echoBoolean +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoBoolean", array(new SoapParam(new SoapVar(true, XSD_BOOLEAN), "inputBoolean")), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1 + +1 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_021w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_021w.phpt new file mode 100644 index 0000000000..e2ed997991 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_021w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 021 (php/wsdl): echoBoolean +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoBoolean(true); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1 + +1 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_022p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_022p.phpt new file mode 100644 index 0000000000..1aeb21d90b --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_022p.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 022 (php/direct): echoBoolean +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoBoolean", array(false), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +0 + +0 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_022s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_022s.phpt new file mode 100644 index 0000000000..8c43f420a4 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_022s.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 022 (soap/direct): echoBoolean +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoBoolean", array(new SoapParam(new SoapVar(false, XSD_BOOLEAN), "inputBoolean")), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +0 + +0 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_022w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_022w.phpt new file mode 100644 index 0000000000..62b32c45bd --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_022w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 022 (php/wsdl): echoBoolean +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoBoolean(false); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +0 + +0 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_023p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_023p.phpt new file mode 100644 index 0000000000..885205e4d5 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_023p.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 023 (php/direct): echoBoolean +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoBoolean", array(1), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1 + +1 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_023s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_023s.phpt new file mode 100644 index 0000000000..f52184a78a --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_023s.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 023 (soap/direct): echoBoolean +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoBoolean", array(new SoapParam(new SoapVar(1, XSD_BOOLEAN), "inputBoolean")), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1 + +1 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_023w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_023w.phpt new file mode 100644 index 0000000000..6603e1e312 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_023w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 023 (php/wsdl): echoBoolean +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoBoolean(1); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1 + +1 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_024p.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_024p.phpt new file mode 100644 index 0000000000..543486df8a --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_024p.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 024 (php/direct): echoBoolean +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoBoolean", array(0), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +0 + +0 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_024s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_024s.phpt new file mode 100644 index 0000000000..dd3a3520b8 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_024s.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 024 (soap/direct): echoBoolean +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoBoolean", array(new SoapParam(new SoapVar(0, XSD_BOOLEAN), "inputBoolean")), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +0 + +0 +ok diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_024w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_024w.phpt new file mode 100644 index 0000000000..359e620849 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/r2_base_024w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 base 024 (php/wsdl): echoBoolean +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoBoolean(0); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_base.inc"); +echo "ok\n"; +?> +--EXPECT-- + +0 + +0 +ok diff --git a/ext/soap/tests/interop/Round2/Base/round2_base.inc b/ext/soap/tests/interop/Round2/Base/round2_base.inc new file mode 100644 index 0000000000..b197f5bddd --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/round2_base.inc @@ -0,0 +1,80 @@ +setClass("SOAP_Interop_Base"); +$server->handle(); +?> \ No newline at end of file diff --git a/ext/soap/tests/interop/Round2/Base/round2_base.wsdl b/ext/soap/tests/interop/Round2/Base/round2_base.wsdl new file mode 100644 index 0000000000..c7c70319dd --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/round2_base.wsdl @@ -0,0 +1,332 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round2/Base/skipif.inc b/ext/soap/tests/interop/Round2/Base/skipif.inc new file mode 100644 index 0000000000..fa8574e6a2 --- /dev/null +++ b/ext/soap/tests/interop/Round2/Base/skipif.inc @@ -0,0 +1,3 @@ + diff --git a/ext/soap/tests/interop/Round2/GroupB/r2_groupB_001p.phpt b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_001p.phpt new file mode 100644 index 0000000000..5047a990e4 --- /dev/null +++ b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_001p.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 groupB 001 (php/direct): echoStructAsSimpleTypes +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoStructAsSimpleTypes", array((object)array('varString'=>"arg",'varInt'=>34,'varFloat'=>34.345)), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_groupB.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg3434.345 + +arg3434.345 +ok diff --git a/ext/soap/tests/interop/Round2/GroupB/r2_groupB_001s.phpt b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_001s.phpt new file mode 100644 index 0000000000..9b6670772c --- /dev/null +++ b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_001s.phpt @@ -0,0 +1,24 @@ +--TEST-- +SOAP Interop Round2 groupB 001 (soap/direct): echoStructAsSimpleTypes +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoStructAsSimpleTypes", array($param), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_groupB.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg3434.345 + +arg3434.345 +ok diff --git a/ext/soap/tests/interop/Round2/GroupB/r2_groupB_001w.phpt b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_001w.phpt new file mode 100644 index 0000000000..8fd43336a2 --- /dev/null +++ b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_001w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 groupB 001 (php/wsdl): echoStructAsSimpleTypes +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoStructAsSimpleTypes((object)array('varString'=>"arg",'varInt'=>34,'varFloat'=>34.345)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_groupB.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg3434.345 + +arg3434.345 +ok diff --git a/ext/soap/tests/interop/Round2/GroupB/r2_groupB_002p.phpt b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_002p.phpt new file mode 100644 index 0000000000..6ea475c3f0 --- /dev/null +++ b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_002p.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 groupB 002 (php/direct): echoSimpleTypesAsStruct +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoSimpleTypesAsStruct", array("arg",34,34.345), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_groupB.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg3434.345 + +arg3434.345 +ok diff --git a/ext/soap/tests/interop/Round2/GroupB/r2_groupB_002s.phpt b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_002s.phpt new file mode 100644 index 0000000000..3fcf6de66b --- /dev/null +++ b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_002s.phpt @@ -0,0 +1,22 @@ +--TEST-- +SOAP Interop Round2 groupB 002 (soap/direct): echoSimpleTypesAsStruct +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoSimpleTypesAsStruct", array( + new SoapParam(new SoapVar("arg",XSD_STRING), "inputString"), + new SoapParam(new SoapVar(34,XSD_INT), "inputInteger"), + new SoapParam(new SoapVar(34.345,XSD_FLOAT), "inputFloat")), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_groupB.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg3434.345 + +arg3434.345 +ok diff --git a/ext/soap/tests/interop/Round2/GroupB/r2_groupB_002w.phpt b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_002w.phpt new file mode 100644 index 0000000000..97fece7aab --- /dev/null +++ b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_002w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round2 groupB 002 (php/wsdl): echoSimpleTypesAsStruct +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoSimpleTypesAsStruct("arg",34,34.345); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_groupB.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg3434.345 + +arg3434.345 +ok diff --git a/ext/soap/tests/interop/Round2/GroupB/r2_groupB_003p.phpt b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_003p.phpt new file mode 100644 index 0000000000..80dff6d5be --- /dev/null +++ b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_003p.phpt @@ -0,0 +1,22 @@ +--TEST-- +SOAP Interop Round2 groupB 003 (php/direct): echo2DStringArray +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echo2DStringArray", array($param), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_groupB.inc"); +echo "ok\n"; +?> +--EXPECT-- + +row0col0row0col1row0col2row1col0row1col1row1col2 + +row0col0row0col1row0col2row1col0row1col1row1col2 +ok diff --git a/ext/soap/tests/interop/Round2/GroupB/r2_groupB_003s.phpt b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_003s.phpt new file mode 100644 index 0000000000..5161144fee --- /dev/null +++ b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_003s.phpt @@ -0,0 +1,31 @@ +--TEST-- +SOAP Interop Round2 groupB 003 (soap/direct): echo2DStringArray +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echo2DStringArray", array($param), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_groupB.inc"); +echo "ok\n"; +?> +--EXPECT-- + +row0col0row0col1row0col2row1col0row1col1row1col2 + +row0col0row0col1row0col2row1col0row1col1row1col2 +ok diff --git a/ext/soap/tests/interop/Round2/GroupB/r2_groupB_003w.phpt b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_003w.phpt new file mode 100644 index 0000000000..5d4ad0cfc6 --- /dev/null +++ b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_003w.phpt @@ -0,0 +1,22 @@ +--TEST-- +SOAP Interop Round2 groupB 003 (php/wsdl): echo2DStringArray +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echo2DStringArray($param); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_groupB.inc"); +echo "ok\n"; +?> +--EXPECT-- + +row0col0row0col1row0col2row1col0row1col1row1col2 + +row0col0row0col1row0col2row1col0row1col1row1col2 +ok diff --git a/ext/soap/tests/interop/Round2/GroupB/r2_groupB_004p.phpt b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_004p.phpt new file mode 100644 index 0000000000..fbeb9afd57 --- /dev/null +++ b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_004p.phpt @@ -0,0 +1,29 @@ +--TEST-- +SOAP Interop Round2 groupB 004 (php/direct): echoNestedStruct +--SKIPIF-- + +--FILE-- + "arg", + 'varInt' => 34, + 'varFloat' => 123.45, + 'varStruct' => (object)array( + 'varString' => "arg2", + 'varInt' => 342, + 'varFloat' => 123.452, + )); + +$client = new SoapClient(NULL,array("location"=>"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoNestedStruct", array($param), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_groupB.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg34123.45arg2342123.452 + +arg34123.45arg2342123.452 +ok diff --git a/ext/soap/tests/interop/Round2/GroupB/r2_groupB_004s.phpt b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_004s.phpt new file mode 100644 index 0000000000..ad18c2b432 --- /dev/null +++ b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_004s.phpt @@ -0,0 +1,29 @@ +--TEST-- +SOAP Interop Round2 groupB 004 (soap/direct): echoNestedStruct +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoNestedStruct", array($param), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_groupB.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg34123.45arg2342123.452 + +arg34123.45arg2342123.452 +ok diff --git a/ext/soap/tests/interop/Round2/GroupB/r2_groupB_004w.phpt b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_004w.phpt new file mode 100644 index 0000000000..4bbc51f127 --- /dev/null +++ b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_004w.phpt @@ -0,0 +1,29 @@ +--TEST-- +SOAP Interop Round2 groupB 004 (php/wsdl): echoNestedStruct +--SKIPIF-- + +--FILE-- + "arg", + 'varInt' => 34, + 'varFloat' => 123.45, + 'varStruct' => (object)array( + 'varString' => "arg2", + 'varInt' => 342, + 'varFloat' => 123.452, + )); + +$client = new SoapClient(dirname(__FILE__)."/round2_groupB.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoNestedStruct($param); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_groupB.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg34123.45arg2342123.452 + +arg34123.45arg2342123.452 +ok diff --git a/ext/soap/tests/interop/Round2/GroupB/r2_groupB_005p.phpt b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_005p.phpt new file mode 100644 index 0000000000..61298389e3 --- /dev/null +++ b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_005p.phpt @@ -0,0 +1,24 @@ +--TEST-- +SOAP Interop Round2 groupB 005 (php/direct): echoNestedArray +--SKIPIF-- + +--FILE-- +'arg', + 'varInt'=>34, + 'varFloat'=>325.325, + 'varArray' => array('red','blue','green')); +$client = new SoapClient(NULL,array("location"=>"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoNestedArray", array($param), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_groupB.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg34325.325redbluegreen + +arg34325.325redbluegreen +ok diff --git a/ext/soap/tests/interop/Round2/GroupB/r2_groupB_005s.phpt b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_005s.phpt new file mode 100644 index 0000000000..fcb5990093 --- /dev/null +++ b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_005s.phpt @@ -0,0 +1,29 @@ +--TEST-- +SOAP Interop Round2 groupB 005 (soap/direct): echoNestedArray +--SKIPIF-- + +--FILE-- +"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoNestedArray", array($param), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_groupB.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg34325.325redbluegreen + +arg34325.325redbluegreen +ok diff --git a/ext/soap/tests/interop/Round2/GroupB/r2_groupB_005w.phpt b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_005w.phpt new file mode 100644 index 0000000000..206fca84e9 --- /dev/null +++ b/ext/soap/tests/interop/Round2/GroupB/r2_groupB_005w.phpt @@ -0,0 +1,24 @@ +--TEST-- +SOAP Interop Round2 groupB 005 (php/wsdl): echoNestedArray +--SKIPIF-- + +--FILE-- +'arg', + 'varInt'=>34, + 'varFloat'=>325.325, + 'varArray' => array('red','blue','green')); +$client = new SoapClient(dirname(__FILE__)."/round2_groupB.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoNestedArray($param); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round2_groupB.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg34325.325redbluegreen + +arg34325.325redbluegreen +ok diff --git a/ext/soap/tests/interop/Round2/GroupB/round2_groupB.inc b/ext/soap/tests/interop/Round2/GroupB/round2_groupB.inc new file mode 100644 index 0000000000..ef00e3bfd0 --- /dev/null +++ b/ext/soap/tests/interop/Round2/GroupB/round2_groupB.inc @@ -0,0 +1,37 @@ + $struct->varString, + 'outputInteger' => $struct->varInt, + 'outputFloat' => $struct->varFloat); + } + + function echoSimpleTypesAsStruct($string, $int, $float) + { + return (object)array("varString" => $string, + "varInt" => $int, + "varFloat" => $float); + } + + function echoNestedStruct($struct) + { + return $struct; + } + + function echo2DStringArray($ary) + { + return $ary; + } + + function echoNestedArray($ary) + { + return $ary; + } +} + +$server = new SoapServer(dirname(__FILE__)."/round2_groupB.wsdl"); +$server->setClass("SOAP_Interop_GroupB"); +$server->handle(); +?> diff --git a/ext/soap/tests/interop/Round2/GroupB/round2_groupB.wsdl b/ext/soap/tests/interop/Round2/GroupB/round2_groupB.wsdl new file mode 100644 index 0000000000..8fc2a1b119 --- /dev/null +++ b/ext/soap/tests/interop/Round2/GroupB/round2_groupB.wsdl @@ -0,0 +1,192 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round2/GroupB/skipif.inc b/ext/soap/tests/interop/Round2/GroupB/skipif.inc new file mode 100644 index 0000000000..fa8574e6a2 --- /dev/null +++ b/ext/soap/tests/interop/Round2/GroupB/skipif.inc @@ -0,0 +1,3 @@ + diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_001w.phpt b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_001w.phpt new file mode 100644 index 0000000000..3a047a93c5 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_001w.phpt @@ -0,0 +1,28 @@ +--TEST-- +SOAP Interop Round3 GroupD Compound1 001 (php/wsdl): echoPerson +--SKIPIF-- + +--FILE-- +Age = $a; + $this->ID = $i; + $this->Name = $n; + $this->Male = $m; + } +} +$person = new Person(32,12345,'Shane',TRUE); +$client = new SoapClient(dirname(__FILE__)."/round3_groupD_compound1.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoPerson($person); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupD_compound1.inc"); +echo "ok\n"; +?> +--EXPECT-- + +3212345 + +3212345 +ok diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_002w.phpt b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_002w.phpt new file mode 100644 index 0000000000..ab9a44ad7d --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_002w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round3 GroupD Compound1 002 (php/wsdl): echoDocument +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoDocument("Test Document Here"); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupD_compound1.inc"); +echo "ok\n"; +?> +--EXPECT-- + +Test Document Here + +Test Document Here +ok diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_003w.diff b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_003w.diff new file mode 100644 index 0000000000..7e7e6cf889 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_003w.diff @@ -0,0 +1,4 @@ +002+ Test Document Here +002- Test Document Here +004+ Test Document Here +004- Test Document Here \ No newline at end of file diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_003w.exp b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_003w.exp new file mode 100644 index 0000000000..d832c04a84 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_003w.exp @@ -0,0 +1,5 @@ + +Test Document Here + +Test Document Here +ok \ No newline at end of file diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_003w.log b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_003w.log new file mode 100644 index 0000000000..6ae84220b8 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_003w.log @@ -0,0 +1,14 @@ + +---- EXPECTED OUTPUT + +Test Document Here + +Test Document Here +ok +---- ACTUAL OUTPUT + +Test Document Here + +Test Document Here +ok +---- FAILED diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_003w.out b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_003w.out new file mode 100644 index 0000000000..798b0fe9ec --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_003w.out @@ -0,0 +1,5 @@ + +Test Document Here + +Test Document Here +ok \ No newline at end of file diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_003w.php b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_003w.php new file mode 100644 index 0000000000..d414a5a7d6 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_003w.php @@ -0,0 +1,8 @@ +1,"exceptions"=>0)); +$client->echoDocument((object)array("_"=>"Test Document Here","ID"=>1)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupD_compound1.inc"); +echo "ok\n"; +?> diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_003w.phpt b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_003w.phpt new file mode 100644 index 0000000000..a3e7ff06a3 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_003w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round3 GroupD Compound1 003 (php/wsdl): echoDocument +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoDocument((object)array("_"=>"Test Document Here","ID"=>1)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupD_compound1.inc"); +echo "ok\n"; +?> +--EXPECT-- + +Test Document Here + +Test Document Here +ok diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound2_001w.phpt b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound2_001w.phpt new file mode 100644 index 0000000000..ee74a962f6 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound2_001w.phpt @@ -0,0 +1,37 @@ +--TEST-- +SOAP Interop Round3 GroupD Compound2 001 (php/wsdl): echoEmployee +--SKIPIF-- + +--FILE-- +Age = $a; + $this->ID = $i; + $this->Name = $n; + $this->Male = $m; + } +} +class Employee { + function Employee($person=NULL,$id=NULL,$salary=NULL) { + $this->person = $person; + $this->ID = $id; + $this->salary = $salary; + } +} +$person = new Person(32,12345,'Shane',TRUE); +$employee = new Employee($person,12345,1000000.00); + +$client = new SoapClient(dirname(__FILE__)."/round3_groupD_compound2.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoEmployee($employee); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupD_compound2.inc"); +echo "ok\n"; +?> +--EXPECT-- + +Shane1100000012345 + +Shane1100000012345 +ok diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclit_001w.phpt b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclit_001w.phpt new file mode 100644 index 0000000000..ed9fb50e74 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclit_001w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round3 GroupD Doc Lit 001 (php/wsdl): echoString +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoString("Hello World"); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupD_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +Hello World + +Hello World +ok diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclit_002w.phpt b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclit_002w.phpt new file mode 100644 index 0000000000..ec005444b7 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclit_002w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round3 GroupD Doc Lit 002 (php/wsdl): echoStringArray +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoStringArray(array("one","two","three")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupD_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +onetwothree + +onetwothree +ok diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclit_003w.phpt b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclit_003w.phpt new file mode 100644 index 0000000000..36b26ceb3c --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclit_003w.phpt @@ -0,0 +1,27 @@ +--TEST-- +SOAP Interop Round3 GroupD Doc Lit 003 (php/wsdl): echoStruct +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +$struct = new SOAPStruct('arg',34,325.325); +$client = new SoapClient(dirname(__FILE__)."/round3_groupD_doclit.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoStruct($struct); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupD_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +325.32534arg + +325.32534arg +ok diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclit_004w.phpt b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclit_004w.phpt new file mode 100644 index 0000000000..ecd6bf01ea --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclit_004w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round3 GroupD Doc Lit 004 (php/wsdl): echoVoid +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoVoid(); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupD_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +ok diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclitparams_001w.phpt b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclitparams_001w.phpt new file mode 100644 index 0000000000..fa5269ad7a --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclitparams_001w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round3 GroupD Doc Lit Parameters 001 (php/wsdl): echoString +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoString(array("param0"=>"Hello World")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupD_doclitparams.inc"); +echo "ok\n"; +?> +--EXPECT-- + +Hello World + +Hello World +ok diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclitparams_002w.phpt b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclitparams_002w.phpt new file mode 100644 index 0000000000..be1b51b4d7 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclitparams_002w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round3 GroupD Doc Lit Parameters 002 (php/wsdl): echoStringArray +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoStringArray(array("param0"=>array("one","two","three"))); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupD_doclitparams.inc"); +echo "ok\n"; +?> +--EXPECT-- + +onetwothree + +onetwothree +ok diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclitparams_003w.phpt b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclitparams_003w.phpt new file mode 100644 index 0000000000..da94cedde0 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclitparams_003w.phpt @@ -0,0 +1,27 @@ +--TEST-- +SOAP Interop Round3 GroupD Doc Lit Parameters 003 (php/wsdl): echoStruct +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +$struct = new SOAPStruct('arg',34,325.325); +$client = new SoapClient(dirname(__FILE__)."/round3_groupD_doclitparams.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoStruct(array("param0"=>$struct)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupD_doclitparams.inc"); +echo "ok\n"; +?> +--EXPECT-- + +325.32534arg + +325.32534arg +ok diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclitparams_004w.phpt b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclitparams_004w.phpt new file mode 100644 index 0000000000..fcad37659a --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclitparams_004w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round3 GroupD Doc Lit Parameters 004 (php/wsdl): echoVoid +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoVoid(); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupD_doclitparams.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +ok diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_emptysa_001w.phpt b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_emptysa_001w.phpt new file mode 100644 index 0000000000..1f74fe6a4f --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_emptysa_001w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round3 GroupD EmptySA 001 (php/wsdl): echoString +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoString("Hello World"); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupD_emptysa.inc"); +echo "ok\n"; +?> +--EXPECT-- + +Hello World + +Hello World +ok diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_import1_001w.phpt b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_import1_001w.phpt new file mode 100644 index 0000000000..8c760cc928 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_import1_001w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round3 GroupD Import1 001 (php/wsdl): echoString +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoString("Hello World"); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupD_import1.inc"); +echo "ok\n"; +?> +--EXPECT-- + +Hello World + +Hello World +ok diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_import2_001w.phpt b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_import2_001w.phpt new file mode 100644 index 0000000000..53ac18bafd --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_import2_001w.phpt @@ -0,0 +1,27 @@ +--TEST-- +SOAP Interop Round3 GroupD Import2 001 (php/wsdl): echoStruct +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +$struct = new SOAPStruct('arg',34,325.325); +$client = new SoapClient(dirname(__FILE__)."/round3_groupD_import2.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoStruct($struct); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupD_import2.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg34325.325 + +arg34325.325 +ok diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_import3_001w.phpt b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_import3_001w.phpt new file mode 100644 index 0000000000..2a4d656076 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_import3_001w.phpt @@ -0,0 +1,27 @@ +--TEST-- +SOAP Interop Round3 GroupD Import3 001 (php/wsdl): echoStruct +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +$struct = new SOAPStruct('arg',34,325.325); +$client = new SoapClient(dirname(__FILE__)."/round3_groupD_import3.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoStruct($struct); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupD_import3.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg34325.325 + +arg34325.325 +ok diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_import3_002w.phpt b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_import3_002w.phpt new file mode 100644 index 0000000000..b3e2d7b121 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_import3_002w.phpt @@ -0,0 +1,27 @@ +--TEST-- +SOAP Interop Round3 GroupD Import3 002 (php/wsdl): echoStructArray +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +$struct = new SOAPStruct('arg',34,325.325); +$client = new SoapClient(dirname(__FILE__)."/round3_groupD_import3.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoStructArray(array($struct,$struct)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupD_import3.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg34325.325arg34325.325 + +arg34325.325arg34325.325 +ok diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_rpcenc_001w.phpt b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_rpcenc_001w.phpt new file mode 100644 index 0000000000..3bc4b4e068 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_rpcenc_001w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round3 GroupD RPC Encoded 001 (php/wsdl): echoString +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoString("Hello World"); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupD_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +Hello World + +Hello World +ok diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_rpcenc_002w.phpt b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_rpcenc_002w.phpt new file mode 100644 index 0000000000..a3fc99d27e --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_rpcenc_002w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round3 GroupD RPC Encoded 002 (php/wsdl): echoStringArray +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoStringArray(array("one","two","three")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupD_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +onetwothree + +onetwothree +ok diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_rpcenc_003w.phpt b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_rpcenc_003w.phpt new file mode 100644 index 0000000000..2ebd90b499 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_rpcenc_003w.phpt @@ -0,0 +1,27 @@ +--TEST-- +SOAP Interop Round3 GroupD RPC Encoded 003 (php/wsdl): echoStruct +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +$struct = new SOAPStruct('arg',34,325.325); +$client = new SoapClient(dirname(__FILE__)."/round3_groupD_rpcenc.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoStruct($struct); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupD_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +325.32534arg + +325.32534arg +ok diff --git a/ext/soap/tests/interop/Round3/GroupD/r3_groupD_rpcenc_004w.phpt b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_rpcenc_004w.phpt new file mode 100644 index 0000000000..732dfcce38 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/r3_groupD_rpcenc_004w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round3 GroupD RPC Encoded 004 (php/wsdl): echoVoid +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoVoid(); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupD_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +ok diff --git a/ext/soap/tests/interop/Round3/GroupD/round3_groupD_compound1.inc b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_compound1.inc new file mode 100644 index 0000000000..0525b0b51a --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_compound1.inc @@ -0,0 +1,17 @@ +setClass("SOAP_Interop_GroupD"); +$server->handle(); +?> diff --git a/ext/soap/tests/interop/Round3/GroupD/round3_groupD_compound1.wsdl b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_compound1.wsdl new file mode 100644 index 0000000000..6a8f85182e --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_compound1.wsdl @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round3/GroupD/round3_groupD_compound2.inc b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_compound2.inc new file mode 100644 index 0000000000..81b96cdbff --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_compound2.inc @@ -0,0 +1,12 @@ +setClass("SOAP_Interop_GroupD"); +$server->handle(); +?> diff --git a/ext/soap/tests/interop/Round3/GroupD/round3_groupD_compound2.wsdl b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_compound2.wsdl new file mode 100644 index 0000000000..e8b63e0157 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_compound2.wsdl @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round3/GroupD/round3_groupD_doclit.inc b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_doclit.inc new file mode 100644 index 0000000000..8ca0338f5f --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_doclit.inc @@ -0,0 +1,28 @@ +setClass("SOAP_Interop_GroupD"); +$server->handle(); +?> \ No newline at end of file diff --git a/ext/soap/tests/interop/Round3/GroupD/round3_groupD_doclit.wsdl b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_doclit.wsdl new file mode 100644 index 0000000000..4febca8994 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_doclit.wsdl @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round3/GroupD/round3_groupD_doclitparams.inc b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_doclitparams.inc new file mode 100644 index 0000000000..2042cfc179 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_doclitparams.inc @@ -0,0 +1,29 @@ +$inputString->param0); + } + + function echoStringArray($inputStringArray) + { + return array("return"=>$inputStringArray->param0); + } + + function echoStruct($inputStruct) + { + return array("return"=>$inputStruct->param0); + } + + function echoVoid() + { + return NULL; + } + +} + +$server = new SoapServer(dirname(__FILE__)."/round3_groupD_doclitparams.wsdl"); +$server->setClass("SOAP_Interop_GroupD"); +$server->handle(); +?> \ No newline at end of file diff --git a/ext/soap/tests/interop/Round3/GroupD/round3_groupD_doclitparams.wsdl b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_doclitparams.wsdl new file mode 100644 index 0000000000..8b8558de45 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_doclitparams.wsdl @@ -0,0 +1,175 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round3/GroupD/round3_groupD_emptysa.inc b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_emptysa.inc new file mode 100644 index 0000000000..b239c45438 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_emptysa.inc @@ -0,0 +1,14 @@ +setClass("SOAP_Interop_GroupD"); +$server->handle(); +?> \ No newline at end of file diff --git a/ext/soap/tests/interop/Round3/GroupD/round3_groupD_emptysa.wsdl b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_emptysa.wsdl new file mode 100644 index 0000000000..09a09a4cd0 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_emptysa.wsdl @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round3/GroupD/round3_groupD_import1.inc b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_import1.inc new file mode 100644 index 0000000000..2e56d1897a --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_import1.inc @@ -0,0 +1,14 @@ +setClass("SOAP_Interop_GroupD"); +$server->handle(); +?> \ No newline at end of file diff --git a/ext/soap/tests/interop/Round3/GroupD/round3_groupD_import1.wsdl b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_import1.wsdl new file mode 100644 index 0000000000..d92883000e --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_import1.wsdl @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round3/GroupD/round3_groupD_import2.inc b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_import2.inc new file mode 100644 index 0000000000..a0893c6b7c --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_import2.inc @@ -0,0 +1,14 @@ +setClass("SOAP_Interop_GroupD"); +$server->handle(); +?> \ No newline at end of file diff --git a/ext/soap/tests/interop/Round3/GroupD/round3_groupD_import2.wsdl b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_import2.wsdl new file mode 100644 index 0000000000..fc0f8ae7fa --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_import2.wsdl @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round3/GroupD/round3_groupD_import2_absolute.wsdl b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_import2_absolute.wsdl new file mode 100644 index 0000000000..fc0f8ae7fa --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_import2_absolute.wsdl @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round3/GroupD/round3_groupD_import3.inc b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_import3.inc new file mode 100644 index 0000000000..398f97ecf3 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_import3.inc @@ -0,0 +1,19 @@ +setClass("SOAP_Interop_GroupD"); +$server->handle(); +?> \ No newline at end of file diff --git a/ext/soap/tests/interop/Round3/GroupD/round3_groupD_import3.wsdl b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_import3.wsdl new file mode 100644 index 0000000000..3dd264208b --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_import3.wsdl @@ -0,0 +1,75 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round3/GroupD/round3_groupD_rpcenc.inc b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_rpcenc.inc new file mode 100644 index 0000000000..645ab3a61c --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_rpcenc.inc @@ -0,0 +1,28 @@ +setClass("SOAP_Interop_GroupD"); +$server->handle(); +?> \ No newline at end of file diff --git a/ext/soap/tests/interop/Round3/GroupD/round3_groupD_rpcenc.wsdl b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_rpcenc.wsdl new file mode 100644 index 0000000000..03568f7b3a --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/round3_groupD_rpcenc.wsdl @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round3/GroupD/skipif.inc b/ext/soap/tests/interop/Round3/GroupD/skipif.inc new file mode 100644 index 0000000000..fa8574e6a2 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupD/skipif.inc @@ -0,0 +1,3 @@ + diff --git a/ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_001w.phpt b/ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_001w.phpt new file mode 100644 index 0000000000..523f0e1c2f --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_001w.phpt @@ -0,0 +1,35 @@ +--TEST-- +SOAP Interop Round3 GroupE List 001 (php/wsdl): echoLinkedList +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->child = $c; + } +} +$struct = new SOAPList('arg1',1,NULL); +$client = new SoapClient(dirname(__FILE__)."/round3_groupE_list.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoLinkedList($struct); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupE_list.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1arg1 + +1arg1 +object(stdClass)#5 (3) { + ["varInt"]=> + int(1) + ["varString"]=> + string(4) "arg1" + ["child"]=> + NULL +} +ok diff --git a/ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_002w.phpt b/ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_002w.phpt new file mode 100644 index 0000000000..e14bb4aad1 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_002w.phpt @@ -0,0 +1,42 @@ +--TEST-- +SOAP Interop Round3 GroupE List 002 (php/wsdl): echoLinkedList +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->child = $c; + } +} +$struct = new SOAPList('arg1',1, new SOAPList('arg2',2,NULL)); +$client = new SoapClient(dirname(__FILE__)."/round3_groupE_list.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoLinkedList($struct); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupE_list.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1arg12arg2 + +1arg12arg2 +object(stdClass)#6 (3) { + ["varInt"]=> + int(1) + ["varString"]=> + string(4) "arg1" + ["child"]=> + object(stdClass)#7 (3) { + ["varInt"]=> + int(2) + ["varString"]=> + string(4) "arg2" + ["child"]=> + NULL + } +} +ok diff --git a/ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_003w.phpt b/ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_003w.phpt new file mode 100644 index 0000000000..09d3bef433 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_003w.phpt @@ -0,0 +1,49 @@ +--TEST-- +SOAP Interop Round3 GroupE List 003 (php/wsdl): echoLinkedList +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->child = $c; + } +} +$struct = new SOAPList('arg1',1,new SOAPList('arg2',2,new SOAPList('arg3',3,NULL))); +$client = new SoapClient(dirname(__FILE__)."/round3_groupE_list.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoLinkedList($struct); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupE_list.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1arg12arg23arg3 + +1arg12arg23arg3 +object(stdClass)#7 (3) { + ["varInt"]=> + int(1) + ["varString"]=> + string(4) "arg1" + ["child"]=> + object(stdClass)#8 (3) { + ["varInt"]=> + int(2) + ["varString"]=> + string(4) "arg2" + ["child"]=> + object(stdClass)#9 (3) { + ["varInt"]=> + int(3) + ["varString"]=> + string(4) "arg3" + ["child"]=> + NULL + } + } +} +ok diff --git a/ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_004w.phpt b/ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_004w.phpt new file mode 100644 index 0000000000..212cf76d04 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_004w.phpt @@ -0,0 +1,28 @@ +--TEST-- +SOAP Interop Round3 GroupE List 004 (php/wsdl): echoLinkedList +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->child = $c; + } +} +$struct = NULL; +$client = new SoapClient(dirname(__FILE__)."/round3_groupE_list.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoLinkedList($struct); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupE_list.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +NULL +ok diff --git a/ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_005w.phpt b/ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_005w.phpt new file mode 100644 index 0000000000..e66bbb7a21 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_005w.phpt @@ -0,0 +1,50 @@ +--TEST-- +SOAP Interop Round3 GroupE List 005 (php/wsdl): echoLinkedList (cyclic) +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->child = $c; + } +} +$struct = new SOAPList('arg1',1,new SOAPList('arg2',2,new SOAPList('arg3',3,NULL))); +$struct->child->child->child = $struct; +$client = new SoapClient(dirname(__FILE__)."/round3_groupE_list.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoLinkedList($struct); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupE_list.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1arg12arg23arg3 + +1arg12arg23arg3 +object(stdClass)#7 (3) { + ["varInt"]=> + int(1) + ["varString"]=> + string(4) "arg1" + ["child"]=> + object(stdClass)#8 (3) { + ["varInt"]=> + int(2) + ["varString"]=> + string(4) "arg2" + ["child"]=> + object(stdClass)#9 (3) { + ["varInt"]=> + int(3) + ["varString"]=> + string(4) "arg3" + ["child"]=> + NULL + } + } +} +ok diff --git a/ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_006w.phpt b/ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_006w.phpt new file mode 100644 index 0000000000..49584874d7 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_006w.phpt @@ -0,0 +1,50 @@ +--TEST-- +SOAP Interop Round3 GroupE List 006 (php/wsdl): echoLinkedList (cyclic) +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->child = $c; + } +} +$struct = new SOAPList('arg1',1,new SOAPList('arg2',2,new SOAPList('arg3',3,NULL))); +$struct->child->child->child = $struct->child; +$client = new SoapClient(dirname(__FILE__)."/round3_groupE_list.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoLinkedList($struct); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupE_list.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1arg12arg23arg3 + +1arg12arg23arg3 +object(stdClass)#7 (3) { + ["varInt"]=> + int(1) + ["varString"]=> + string(4) "arg1" + ["child"]=> + object(stdClass)#8 (3) { + ["varInt"]=> + int(2) + ["varString"]=> + string(4) "arg2" + ["child"]=> + object(stdClass)#9 (3) { + ["varInt"]=> + int(3) + ["varString"]=> + string(4) "arg3" + ["child"]=> + NULL + } + } +} +ok diff --git a/ext/soap/tests/interop/Round3/GroupE/round3_groupE_list.inc b/ext/soap/tests/interop/Round3/GroupE/round3_groupE_list.inc new file mode 100644 index 0000000000..83454c0774 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupE/round3_groupE_list.inc @@ -0,0 +1,17 @@ +setClass("SOAP_Interop_GroupE"); +$server->handle(); +var_dump($d); +?> \ No newline at end of file diff --git a/ext/soap/tests/interop/Round3/GroupE/round3_groupE_list.wsdl b/ext/soap/tests/interop/Round3/GroupE/round3_groupE_list.wsdl new file mode 100644 index 0000000000..49e6a8c4c3 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupE/round3_groupE_list.wsdl @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round3/GroupE/skipif.inc b/ext/soap/tests/interop/Round3/GroupE/skipif.inc new file mode 100644 index 0000000000..fa8574e6a2 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupE/skipif.inc @@ -0,0 +1,3 @@ + diff --git a/ext/soap/tests/interop/Round3/GroupF/r3_groupF_ext_001w.phpt b/ext/soap/tests/interop/Round3/GroupF/r3_groupF_ext_001w.phpt new file mode 100644 index 0000000000..ecfb3a19a3 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/r3_groupF_ext_001w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round3 GroupF Extensibility 001 (php/wsdl): echoString +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoString("Hello World"); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupF_ext.inc"); +echo "ok\n"; +?> +--EXPECT-- + +Hello World + +Hello World +ok diff --git a/ext/soap/tests/interop/Round3/GroupF/r3_groupF_extreq_001w.phpt b/ext/soap/tests/interop/Round3/GroupF/r3_groupF_extreq_001w.phpt new file mode 100644 index 0000000000..05abe3b86a --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/r3_groupF_extreq_001w.phpt @@ -0,0 +1,15 @@ +--TEST-- +SOAP Interop Round3 GroupF Extensibility Required 001 (php/wsdl): echoString +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoString("Hello World"); +echo $client->__getlastrequest(); +//$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +//include("round3_groupF_extreq.inc"); +echo "ok\n"; +?> +--EXPECTF-- +Fatal error: SOAP-ERROR: Parsing WSDL: Unknown required WSDL extension 'http://soapinterop.org/ext' in %sr3_groupF_extreq_001w.php on line %d diff --git a/ext/soap/tests/interop/Round3/GroupF/r3_groupF_headers_001w.phpt b/ext/soap/tests/interop/Round3/GroupF/r3_groupF_headers_001w.phpt new file mode 100644 index 0000000000..958bdda738 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/r3_groupF_headers_001w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round3 GroupF Headers 001 (php/wsdl): echoString +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoString("Hello World"); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupF_headers.inc"); +echo "ok\n"; +?> +--EXPECT-- + +Hello World + +Hello World +ok diff --git a/ext/soap/tests/interop/Round3/GroupF/r3_groupF_headers_002w.phpt b/ext/soap/tests/interop/Round3/GroupF/r3_groupF_headers_002w.phpt new file mode 100644 index 0000000000..b60957b20e --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/r3_groupF_headers_002w.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP Interop Round3 GroupF Headers 002 (php/wsdl): echoString +--SKIPIF-- + +--FILE-- +34,"string"=>"arg")); +$client = new SoapClient(dirname(__FILE__)."/round3_groupF_headers.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoString",array("Hello World"),null,$hdr); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupF_headers.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg34Hello World + +Hello World +ok diff --git a/ext/soap/tests/interop/Round3/GroupF/r3_groupF_headers_003w.phpt b/ext/soap/tests/interop/Round3/GroupF/r3_groupF_headers_003w.phpt new file mode 100644 index 0000000000..1426c07e8a --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/r3_groupF_headers_003w.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP Interop Round3 GroupF Headers 003 (php/wsdl): echoString +--SKIPIF-- + +--FILE-- +34,"string"=>"arg")); +$client = new SoapClient(dirname(__FILE__)."/round3_groupF_headers.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoString",array("Hello World"),null,$hdr); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupF_headers.inc"); +echo "ok\n"; +?> +--EXPECT-- + +34argHello World + +Hello World +ok diff --git a/ext/soap/tests/interop/Round3/GroupF/r3_groupF_headers_004w.phpt b/ext/soap/tests/interop/Round3/GroupF/r3_groupF_headers_004w.phpt new file mode 100644 index 0000000000..db99a7fd13 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/r3_groupF_headers_004w.phpt @@ -0,0 +1,23 @@ +--TEST-- +SOAP Interop Round3 GroupF Headers 004 (php/wsdl): echoString +--SKIPIF-- + +--FILE-- +34,"string"=>"arg1")), + new SoapHeader("http://soapinterop.org/xsd","Header2", array("int"=>43,"string"=>"arg2")) +); +$client = new SoapClient(dirname(__FILE__)."/round3_groupF_headers.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoString",array("Hello World"),null,$hdr); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round3_groupF_headers.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg13443arg2Hello World + +Hello World +ok diff --git a/ext/soap/tests/interop/Round3/GroupF/round3_groupF_ext.inc b/ext/soap/tests/interop/Round3/GroupF/round3_groupF_ext.inc new file mode 100644 index 0000000000..44bc83bdce --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/round3_groupF_ext.inc @@ -0,0 +1,14 @@ +setClass("SOAP_Interop_GroupF"); +$server->handle(); +?> \ No newline at end of file diff --git a/ext/soap/tests/interop/Round3/GroupF/round3_groupF_ext.wsdl b/ext/soap/tests/interop/Round3/GroupF/round3_groupF_ext.wsdl new file mode 100644 index 0000000000..74ec018051 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/round3_groupF_ext.wsdl @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round3/GroupF/round3_groupF_extreq.wsdl b/ext/soap/tests/interop/Round3/GroupF/round3_groupF_extreq.wsdl new file mode 100644 index 0000000000..8dfd65ec98 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/round3_groupF_extreq.wsdl @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round3/GroupF/round3_groupF_headers.inc b/ext/soap/tests/interop/Round3/GroupF/round3_groupF_headers.inc new file mode 100644 index 0000000000..ee65811197 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/round3_groupF_headers.inc @@ -0,0 +1,22 @@ +setClass("SOAP_Interop_GroupF"); +$server->handle(); +?> \ No newline at end of file diff --git a/ext/soap/tests/interop/Round3/GroupF/round3_groupF_headers.wsdl b/ext/soap/tests/interop/Round3/GroupF/round3_groupF_headers.wsdl new file mode 100644 index 0000000000..d03fc32e39 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/round3_groupF_headers.wsdl @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round3/GroupF/skipif.inc b/ext/soap/tests/interop/Round3/GroupF/skipif.inc new file mode 100644 index 0000000000..fa8574e6a2 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/skipif.inc @@ -0,0 +1,3 @@ + diff --git a/ext/soap/tests/interop/Round4/GroupG/round4_groupG_dimedoc.inc b/ext/soap/tests/interop/Round4/GroupG/round4_groupG_dimedoc.inc new file mode 100644 index 0000000000..c2a27186d7 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupG/round4_groupG_dimedoc.inc @@ -0,0 +1,33 @@ +setClass("SOAP_Interop_GroupG"); +$server->handle(); +?> diff --git a/ext/soap/tests/interop/Round4/GroupG/round4_groupG_dimedoc.wsdl b/ext/soap/tests/interop/Round4/GroupG/round4_groupG_dimedoc.wsdl new file mode 100644 index 0000000000..f82216e6fe --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupG/round4_groupG_dimedoc.wsdl @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round4/GroupG/round4_groupG_dimerpc.inc b/ext/soap/tests/interop/Round4/GroupG/round4_groupG_dimerpc.inc new file mode 100644 index 0000000000..2f3c00aa1c --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupG/round4_groupG_dimerpc.inc @@ -0,0 +1,33 @@ +setClass("SOAP_Interop_GroupG"); +$server->handle(); +?> diff --git a/ext/soap/tests/interop/Round4/GroupG/round4_groupG_dimerpc.wsdl b/ext/soap/tests/interop/Round4/GroupG/round4_groupG_dimerpc.wsdl new file mode 100644 index 0000000000..dfaf81e93e --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupG/round4_groupG_dimerpc.wsdl @@ -0,0 +1,171 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round4/GroupG/round4_groupG_mimedoc.inc b/ext/soap/tests/interop/Round4/GroupG/round4_groupG_mimedoc.inc new file mode 100644 index 0000000000..8ed272ed1d --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupG/round4_groupG_mimedoc.inc @@ -0,0 +1,25 @@ +setClass("SOAP_Interop_GroupG"); +$server->handle(); +?> diff --git a/ext/soap/tests/interop/Round4/GroupG/round4_groupG_mimedoc.wsdl b/ext/soap/tests/interop/Round4/GroupG/round4_groupG_mimedoc.wsdl new file mode 100644 index 0000000000..c67172e8c6 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupG/round4_groupG_mimedoc.wsdl @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ext/soap/tests/interop/Round4/GroupG/round4_groupG_mimerpc.inc b/ext/soap/tests/interop/Round4/GroupG/round4_groupG_mimerpc.inc new file mode 100644 index 0000000000..8ed272ed1d --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupG/round4_groupG_mimerpc.inc @@ -0,0 +1,25 @@ +setClass("SOAP_Interop_GroupG"); +$server->handle(); +?> diff --git a/ext/soap/tests/interop/Round4/GroupG/round4_groupG_mimerpc.wsdl b/ext/soap/tests/interop/Round4/GroupG/round4_groupG_mimerpc.wsdl new file mode 100644 index 0000000000..72aea03d13 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupG/round4_groupG_mimerpc.wsdl @@ -0,0 +1,151 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round4/GroupG/skipif.inc b/ext/soap/tests/interop/Round4/GroupG/skipif.inc new file mode 100644 index 0000000000..fa8574e6a2 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupG/skipif.inc @@ -0,0 +1,3 @@ + diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_001w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_001w.phpt new file mode 100644 index 0000000000..c95d3d1693 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_001w.phpt @@ -0,0 +1,26 @@ +--TEST-- +SOAP Interop Round4 GroupH Complex Doc Lit 001 (php/wsdl): echoSOAPStructFault +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +$struct = new SOAPStruct('arg',34,325.325); +$client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_doclit.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoSOAPStructFault($struct); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_complex_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg34325.325 + +SOAP-ENV:ServerFault in response to 'echoSOAPStructFault'.arg34325.325 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_002w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_002w.phpt new file mode 100644 index 0000000000..ce7d00b619 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_002w.phpt @@ -0,0 +1,32 @@ +--TEST-- +SOAP Interop Round4 GroupH Complex Doc Lit 002 (php/wsdl): echoBaseStructFault +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +class BaseStruct { + function BaseStruct($f, $s) { + $this->structMessage = $f; + $this->shortMessage = $s; + } +} +$struct = new BaseStruct(new SOAPStruct("a1",11,12.345),11); +$client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_doclit.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoBaseStructFault($struct); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_complex_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +a11112.34511 + +SOAP-ENV:ServerFault in response to 'echoBaseStructFault'.a11112.34511 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_003w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_003w.phpt new file mode 100644 index 0000000000..c9f31e00d8 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_003w.phpt @@ -0,0 +1,40 @@ +--TEST-- +SOAP Interop Round4 GroupH Complex Doc Lit 003 (php/wsdl): echoExtendedStructFault +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +class BaseStruct { + function BaseStruct($f, $s) { + $this->structMessage = $f; + $this->shortMessage = $s; + } +} +class ExtendedStruct extends BaseStruct { + function ExtendedStruct($f, $s, $x1, $x2, $x3) { + $this->BaseStruct($f,$s); + $this->stringMessage = $x1; + $this->intMessage = $x2; + $this->anotherIntMessage = $x3; + } +} +$struct = new ExtendedStruct(new SOAPStruct("a1",11,12.345),12,"arg",-3,5); +$client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_doclit.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoExtendedStructFault($struct); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_complex_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +a11112.34512arg-35 + +SOAP-ENV:ServerFault in response to 'echoExtendedStructFault'.a11112.34512arg-35 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_004w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_004w.phpt new file mode 100644 index 0000000000..4c917b73ef --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_004w.phpt @@ -0,0 +1,35 @@ +--TEST-- +SOAP Interop Round4 GroupH Complex Doc Lit 004 (php/wsdl): echoMultipleFaults1(1) +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +class BaseStruct { + function BaseStruct($f, $s) { + $this->structMessage = $f; + $this->shortMessage = $s; + } +} +$s1 = new SOAPStruct('arg1',34,325.325); +$s2 = new BaseStruct(new SOAPStruct('arg2',34,325.325),12); +$client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_doclit.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoMultipleFaults1(array("whichFault" => 1, + "param1" => $s1, + "param2" => $s2)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_complex_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1arg134325.325arg234325.32512 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults1'.arg134325.325 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_005w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_005w.phpt new file mode 100644 index 0000000000..1a50cfa4a0 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_005w.phpt @@ -0,0 +1,35 @@ +--TEST-- +SOAP Interop Round4 GroupH Complex Doc Lit 005 (php/wsdl): echoMultipleFaults1(2) +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +class BaseStruct { + function BaseStruct($f, $s) { + $this->structMessage = $f; + $this->shortMessage = $s; + } +} +$s1 = new SOAPStruct('arg1',34,325.325); +$s2 = new BaseStruct(new SOAPStruct('arg2',34,325.325),12); +$client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_doclit.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoMultipleFaults1(array("whichFault" => 2, + "param1" => $s1, + "param2" => $s2)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_complex_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +2arg134325.325arg234325.32512 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults1'.arg234325.32512 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_006w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_006w.phpt new file mode 100644 index 0000000000..88302b817a --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_006w.phpt @@ -0,0 +1,35 @@ +--TEST-- +SOAP Interop Round4 GroupH Complex Doc Lit 006 (php/wsdl): echoMultipleFaults1(3) +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +class BaseStruct { + function BaseStruct($f, $s) { + $this->structMessage = $f; + $this->shortMessage = $s; + } +} +$s1 = new SOAPStruct('arg1',34,325.325); +$s2 = new BaseStruct(new SOAPStruct('arg2',34,325.325),12); +$client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_doclit.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoMultipleFaults1(array("whichFault" => 3, + "param1" => $s1, + "param2" => $s2)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_complex_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +3arg134325.325arg234325.32512 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults1'.arg134325.325 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_007w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_007w.phpt new file mode 100644 index 0000000000..2b5de618e4 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_007w.phpt @@ -0,0 +1,51 @@ +--TEST-- +SOAP Interop Round4 GroupH Complex Doc Lit 007 (php/wsdl): echoMultipleFaults2(1) +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +class BaseStruct { + function BaseStruct($f, $s) { + $this->structMessage = $f; + $this->shortMessage = $s; + } +} +class ExtendedStruct extends BaseStruct { + function ExtendedStruct($f, $s, $x1, $x2, $x3) { + $this->BaseStruct($f,$s); + $this->stringMessage = $x1; + $this->intMessage = $x2; + $this->anotherIntMessage = $x3; + } +} +class MoreExtendedStruct extends ExtendedStruct { + function MoreExtendedStruct($f, $s, $x1, $x2, $x3, $b) { + $this->ExtendedStruct($f, $s, $x1, $x2, $x3); + $this->booleanMessage = $b; + } +} +$s1 = new BaseStruct(new SOAPStruct("s1",1,1.1),1); +$s2 = new ExtendedStruct(new SOAPStruct("s2",2,2.2),2,"arg",-3,5); +$s3 = new MoreExtendedStruct(new SOAPStruct("s3",3,3.3),3,"arg",-3,5,true); +$client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_doclit.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoMultipleFaults2(array("whichFault" => 1, + "param1" => $s1, + "param2" => $s2, + "param3" => $s3)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_complex_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1s111.11s222.22arg-35s333.33arg-351 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults2'.s111.11 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_008w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_008w.phpt new file mode 100644 index 0000000000..1e4a1a2a2d --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_008w.phpt @@ -0,0 +1,51 @@ +--TEST-- +SOAP Interop Round4 GroupH Complex Doc Lit 008 (php/wsdl): echoMultipleFaults2(2) +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +class BaseStruct { + function BaseStruct($f, $s) { + $this->structMessage = $f; + $this->shortMessage = $s; + } +} +class ExtendedStruct extends BaseStruct { + function ExtendedStruct($f, $s, $x1, $x2, $x3) { + $this->BaseStruct($f,$s); + $this->stringMessage = $x1; + $this->intMessage = $x2; + $this->anotherIntMessage = $x3; + } +} +class MoreExtendedStruct extends ExtendedStruct { + function MoreExtendedStruct($f, $s, $x1, $x2, $x3, $b) { + $this->ExtendedStruct($f, $s, $x1, $x2, $x3); + $this->booleanMessage = $b; + } +} +$s1 = new BaseStruct(new SOAPStruct("s1",1,1.1),1); +$s2 = new ExtendedStruct(new SOAPStruct("s2",2,2.2),2,"arg",-3,5); +$s3 = new MoreExtendedStruct(new SOAPStruct("s3",3,3.3),3,"arg",-3,5,true); +$client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_doclit.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoMultipleFaults2(array("whichFault" => 2, + "param1" => $s1, + "param2" => $s2, + "param3" => $s3)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_complex_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +2s111.11s222.22arg-35s333.33arg-351 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults2'.s222.22arg-35 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_009w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_009w.phpt new file mode 100644 index 0000000000..5993012b03 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_009w.phpt @@ -0,0 +1,51 @@ +--TEST-- +SOAP Interop Round4 GroupH Complex Doc Lit 009 (php/wsdl): echoMultipleFaults2(3) +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +class BaseStruct { + function BaseStruct($f, $s) { + $this->structMessage = $f; + $this->shortMessage = $s; + } +} +class ExtendedStruct extends BaseStruct { + function ExtendedStruct($f, $s, $x1, $x2, $x3) { + $this->BaseStruct($f,$s); + $this->stringMessage = $x1; + $this->intMessage = $x2; + $this->anotherIntMessage = $x3; + } +} +class MoreExtendedStruct extends ExtendedStruct { + function MoreExtendedStruct($f, $s, $x1, $x2, $x3, $b) { + $this->ExtendedStruct($f, $s, $x1, $x2, $x3); + $this->booleanMessage = $b; + } +} +$s1 = new BaseStruct(new SOAPStruct("s1",1,1.1),1); +$s2 = new ExtendedStruct(new SOAPStruct("s2",2,2.2),2,"arg",-3,5); +$s3 = new MoreExtendedStruct(new SOAPStruct("s3",3,3.3),3,"arg",-3,5,true); +$client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_doclit.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoMultipleFaults2(array("whichFault" => 3, + "param1" => $s1, + "param2" => $s2, + "param3" => $s3)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_complex_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +3s111.11s222.22arg-35s333.33arg-351 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults2'.s333.33arg-351 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_010w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_010w.phpt new file mode 100644 index 0000000000..b97f397ec6 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_010w.phpt @@ -0,0 +1,51 @@ +--TEST-- +SOAP Interop Round4 GroupH Complex Doc Lit 010 (php/wsdl): echoMultipleFaults2(4) +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +class BaseStruct { + function BaseStruct($f, $s) { + $this->structMessage = $f; + $this->shortMessage = $s; + } +} +class ExtendedStruct extends BaseStruct { + function ExtendedStruct($f, $s, $x1, $x2, $x3) { + $this->BaseStruct($f,$s); + $this->stringMessage = $x1; + $this->intMessage = $x2; + $this->anotherIntMessage = $x3; + } +} +class MoreExtendedStruct extends ExtendedStruct { + function MoreExtendedStruct($f, $s, $x1, $x2, $x3, $b) { + $this->ExtendedStruct($f, $s, $x1, $x2, $x3); + $this->booleanMessage = $b; + } +} +$s1 = new BaseStruct(new SOAPStruct("s1",1,1.1),1); +$s2 = new ExtendedStruct(new SOAPStruct("s2",2,2.2),2,"arg",-3,5); +$s3 = new MoreExtendedStruct(new SOAPStruct("s3",3,3.3),3,"arg",-3,5,true); +$client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_doclit.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoMultipleFaults2(array("whichFault" => 4, + "param1" => $s1, + "param2" => $s2, + "param3" => $s3)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_complex_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +4s111.11s222.22arg-35s333.33arg-351 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults2'.s111.11 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_001w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_001w.phpt new file mode 100644 index 0000000000..b42bae918e --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_001w.phpt @@ -0,0 +1,26 @@ +--TEST-- +SOAP Interop Round4 GroupH Complex RPC Enc 001 (php/wsdl): echoSOAPStructFault +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +$struct = new SOAPStruct('arg',34,325.325); +$client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_rpcenc.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoSOAPStructFault(array("soapStruct"=>$struct)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_complex_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg34325.325 + +SOAP-ENV:ServerFault in response to 'echoSOAPStructFault'.arg34325.325 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_002w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_002w.phpt new file mode 100644 index 0000000000..7368213d18 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_002w.phpt @@ -0,0 +1,25 @@ +--TEST-- +SOAP Interop Round4 GroupH Complex RPC Enc 002 (php/wsdl): echoBaseStructFault +--SKIPIF-- + +--FILE-- +floatMessage = $f; + $this->shortMessage = $s; + } +} +$struct = new BaseStruct(12.345,12); +$client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_rpcenc.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoBaseStructFault($struct); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_complex_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +12.34512 + +SOAP-ENV:ServerFault in response to 'echoBaseStructFault'.12.34512 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_003w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_003w.phpt new file mode 100644 index 0000000000..ee05b4c3fa --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_003w.phpt @@ -0,0 +1,33 @@ +--TEST-- +SOAP Interop Round4 GroupH Complex RPC Enc 003 (php/wsdl): echoExtendedStructFault +--SKIPIF-- + +--FILE-- +floatMessage = $f; + $this->shortMessage = $s; + } +} +class ExtendedStruct extends BaseStruct { + function ExtendedStruct($f, $s, $x1, $x2, $x3) { + $this->BaseStruct($f,$s); + $this->stringMessage = $x1; + $this->intMessage = $x2; + $this->anotherIntMessage = $x3; + } +} +$struct = new ExtendedStruct(12.345,12,"arg",-3,5); +$client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_rpcenc.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoExtendedStructFault($struct); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_complex_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +12.34512arg-35 + +SOAP-ENV:ServerFault in response to 'echoExtendedStructFault'.12.34512arg-35 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_004w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_004w.phpt new file mode 100644 index 0000000000..76202308fc --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_004w.phpt @@ -0,0 +1,33 @@ +--TEST-- +SOAP Interop Round4 GroupH Complex RPC Enc 004 (php/wsdl): echoMultipleFaults1(1) +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +class BaseStruct { + function BaseStruct($f, $s) { + $this->floatMessage = $f; + $this->shortMessage = $s; + } +} +$s1 = new SOAPStruct('arg',34,325.325); +$s2 = new BaseStruct(12.345,12); +$client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_rpcenc.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoMultipleFaults1(1,$s1,$s2); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_complex_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1arg34325.32512.34512 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults1'.arg34325.325 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_005w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_005w.phpt new file mode 100644 index 0000000000..f4395d3b98 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_005w.phpt @@ -0,0 +1,33 @@ +--TEST-- +SOAP Interop Round4 GroupH Complex RPC Enc 005 (php/wsdl): echoMultipleFaults1(2) +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +class BaseStruct { + function BaseStruct($f, $s) { + $this->floatMessage = $f; + $this->shortMessage = $s; + } +} +$s1 = new SOAPStruct('arg',34,325.325); +$s2 = new BaseStruct(12.345,12); +$client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_rpcenc.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoMultipleFaults1(2,$s1,$s2); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_complex_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +2arg34325.32512.34512 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults1'.12.34512 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_006w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_006w.phpt new file mode 100644 index 0000000000..1d41c29658 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_006w.phpt @@ -0,0 +1,33 @@ +--TEST-- +SOAP Interop Round4 GroupH Complex RPC Enc 006 (php/wsdl): echoMultipleFaults1(3) +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +class BaseStruct { + function BaseStruct($f, $s) { + $this->floatMessage = $f; + $this->shortMessage = $s; + } +} +$s1 = new SOAPStruct('arg',34,325.325); +$s2 = new BaseStruct(12.345,12); +$client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_rpcenc.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoMultipleFaults1(3,$s1,$s2); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_complex_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +3arg34325.32512.34512 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults1'.arg34325.325 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_007w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_007w.phpt new file mode 100644 index 0000000000..5bfe663760 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_007w.phpt @@ -0,0 +1,41 @@ +--TEST-- +SOAP Interop Round4 GroupH Complex RPC Enc 007 (php/wsdl): echoMultipleFaults2(1) +--SKIPIF-- + +--FILE-- +floatMessage = $f; + $this->shortMessage = $s; + } +} +class ExtendedStruct extends BaseStruct { + function ExtendedStruct($f, $s, $x1, $x2, $x3) { + $this->BaseStruct($f,$s); + $this->stringMessage = $x1; + $this->intMessage = $x2; + $this->anotherIntMessage = $x3; + } +} +class MoreExtendedStruct extends ExtendedStruct { + function MoreExtendedStruct($f, $s, $x1, $x2, $x3, $b) { + $this->ExtendedStruct($f, $s, $x1, $x2, $x3); + $this->booleanMessage = $b; + } +} +$s1 = new BaseStruct(12.345,1); +$s2 = new ExtendedStruct(12.345,2,"arg",-3,5); +$s3 = new MoreExtendedStruct(12.345,3,"arg",-3,5,true); +$client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_rpcenc.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoMultipleFaults2(1,$s1,$s2,$s3); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_complex_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +112.345112.3452arg-3512.3453arg-351 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults2'.12.3451 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_008w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_008w.phpt new file mode 100644 index 0000000000..a9424cb8a3 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_008w.phpt @@ -0,0 +1,41 @@ +--TEST-- +SOAP Interop Round4 GroupH Complex RPC Enc 008 (php/wsdl): echoMultipleFaults2(2) +--SKIPIF-- + +--FILE-- +floatMessage = $f; + $this->shortMessage = $s; + } +} +class ExtendedStruct extends BaseStruct { + function ExtendedStruct($f, $s, $x1, $x2, $x3) { + $this->BaseStruct($f,$s); + $this->stringMessage = $x1; + $this->intMessage = $x2; + $this->anotherIntMessage = $x3; + } +} +class MoreExtendedStruct extends ExtendedStruct { + function MoreExtendedStruct($f, $s, $x1, $x2, $x3, $b) { + $this->ExtendedStruct($f, $s, $x1, $x2, $x3); + $this->booleanMessage = $b; + } +} +$s1 = new BaseStruct(12.345,1); +$s2 = new ExtendedStruct(12.345,2,"arg",-3,5); +$s3 = new MoreExtendedStruct(12.345,3,"arg",-3,5,true); +$client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_rpcenc.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoMultipleFaults2(2,$s1,$s2,$s3); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_complex_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +212.345112.3452arg-3512.3453arg-351 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults2'.12.3452arg-35 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_009w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_009w.phpt new file mode 100644 index 0000000000..c2c4038da1 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_009w.phpt @@ -0,0 +1,41 @@ +--TEST-- +SOAP Interop Round4 GroupH Complex RPC Enc 009 (php/wsdl): echoMultipleFaults2(3) +--SKIPIF-- + +--FILE-- +floatMessage = $f; + $this->shortMessage = $s; + } +} +class ExtendedStruct extends BaseStruct { + function ExtendedStruct($f, $s, $x1, $x2, $x3) { + $this->BaseStruct($f,$s); + $this->stringMessage = $x1; + $this->intMessage = $x2; + $this->anotherIntMessage = $x3; + } +} +class MoreExtendedStruct extends ExtendedStruct { + function MoreExtendedStruct($f, $s, $x1, $x2, $x3, $b) { + $this->ExtendedStruct($f, $s, $x1, $x2, $x3); + $this->booleanMessage = $b; + } +} +$s1 = new BaseStruct(12.345,1); +$s2 = new ExtendedStruct(12.345,2,"arg",-3,5); +$s3 = new MoreExtendedStruct(12.345,3,"arg",-3,5,true); +$client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_rpcenc.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoMultipleFaults2(3,$s1,$s2,$s3); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_complex_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +312.345112.3452arg-3512.3453arg-351 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults2'.12.3453arg-351 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_010w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_010w.phpt new file mode 100644 index 0000000000..7099391bd8 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_010w.phpt @@ -0,0 +1,41 @@ +--TEST-- +SOAP Interop Round4 GroupH Complex RPC Enc 010 (php/wsdl): echoMultipleFaults2(4) +--SKIPIF-- + +--FILE-- +floatMessage = $f; + $this->shortMessage = $s; + } +} +class ExtendedStruct extends BaseStruct { + function ExtendedStruct($f, $s, $x1, $x2, $x3) { + $this->BaseStruct($f,$s); + $this->stringMessage = $x1; + $this->intMessage = $x2; + $this->anotherIntMessage = $x3; + } +} +class MoreExtendedStruct extends ExtendedStruct { + function MoreExtendedStruct($f, $s, $x1, $x2, $x3, $b) { + $this->ExtendedStruct($f, $s, $x1, $x2, $x3); + $this->booleanMessage = $b; + } +} +$s1 = new BaseStruct(12.345,1); +$s2 = new ExtendedStruct(12.345,2,"arg",-3,5); +$s3 = new MoreExtendedStruct(12.345,3,"arg",-3,5,true); +$client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_rpcenc.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoMultipleFaults2(4,$s1,$s2,$s3); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_complex_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +412.345112.3452arg-3512.3453arg-351 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults2'.12.3451 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_001w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_001w.phpt new file mode 100644 index 0000000000..ac473c88d7 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_001w.phpt @@ -0,0 +1,18 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple Doc Lit 001 (php/wsdl): echoEmptyFault +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoEmptyFault(); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + +SOAP-ENV:ServerFault in response to 'echoEmptyFault'. diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_002w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_002w.phpt new file mode 100644 index 0000000000..ff4014da3f --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_002w.phpt @@ -0,0 +1,18 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple Doc Lit 002 (php/wsdl): echoStringFault +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoStringFault("Hello World"); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +Hello World + +SOAP-ENV:ServerFault in response to 'echoStringFault'.Hello World diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_003w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_003w.phpt new file mode 100644 index 0000000000..26c62476db --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_003w.phpt @@ -0,0 +1,18 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple Doc Lit 003 (php/wsdl): echoIntArrayFault +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoIntArrayFault(array(34,12.345)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +3412 + +SOAP-ENV:ServerFault in response to 'echoIntArrayFault'.3412 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_004w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_004w.phpt new file mode 100644 index 0000000000..4abff69f66 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_004w.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple Doc Lit 004 (php/wsdl): echoMultipleFaults1(1) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults1(array("whichFault" => 1, + "param1" => "Hello world", + "param2" => array(12.345,45,678))); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1Hello world12.34545678 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults1'. diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_005w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_005w.phpt new file mode 100644 index 0000000000..b290e4da88 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_005w.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple Doc Lit 005 (php/wsdl): echoMultipleFaults1(2) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults1(array("whichFault" => 2, + "param1" => "Hello world", + "param2" => array(12.345,45,678))); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +2Hello world12.34545678 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults1'.Hello world diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_006w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_006w.phpt new file mode 100644 index 0000000000..d857dc3546 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_006w.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple Doc Lit 006 (php/wsdl): echoMultipleFaults1(3) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults1(array("whichFault" => 3, + "param1" => "Hello world", + "param2" => array(12.345,45,678))); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +3Hello world12.34545678 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults1'.12.34545678 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_007w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_007w.phpt new file mode 100644 index 0000000000..02517c0039 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_007w.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple Doc Lit 007 (php/wsdl): echoMultipleFaults1(4) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults1(array("whichFault" => 4, + "param1" => "Hello world", + "param2" => array(12.345,45,678))); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +4Hello world12.34545678 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults1'. diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_008w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_008w.phpt new file mode 100644 index 0000000000..691ebda7be --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_008w.phpt @@ -0,0 +1,21 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple Doc Lit 008 (php/wsdl): echoMultipleFaults2(1) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults2(array("whichFault" => 1, + "param1" => "Hello world", + "param2" => 12.345, + "param3" => array("one","two","three"))); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1Hello world12.345onetwothree + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults2'.12.345 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_009w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_009w.phpt new file mode 100644 index 0000000000..2af8b01016 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_009w.phpt @@ -0,0 +1,21 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple Doc Lit 009 (php/wsdl): echoMultipleFaults2(2) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults2(array("whichFault" => 2, + "param1" => "Hello world", + "param2" => 12.345, + "param3" => array("one","two","three"))); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +2Hello world12.345onetwothree + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults2'.Hello world diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_010w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_010w.phpt new file mode 100644 index 0000000000..594c444f2b --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_010w.phpt @@ -0,0 +1,21 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple Doc Lit 010 (php/wsdl): echoMultipleFaults2(3) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults2(array("whichFault" => 3, + "param1" => "Hello world", + "param2" => 12.345, + "param3" => array("one","two","three"))); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +3Hello world12.345onetwothree + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults2'.onetwothree diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_011w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_011w.phpt new file mode 100644 index 0000000000..21389c0b5f --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_011w.phpt @@ -0,0 +1,21 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple Doc Lit 011 (php/wsdl): echoMultipleFaults2(4) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults2(array("whichFault" => 4, + "param1" => "Hello world", + "param2" => 12.345, + "param3" => array("one","two","three"))); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +4Hello world12.345onetwothree + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults2'.12.345 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_012w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_012w.phpt new file mode 100644 index 0000000000..3e2e41dd33 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_012w.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple Doc Lit 012 (php/wsdl): echoMultipleFaults3(1) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults3(array("whichFault" => 1, + "param1" => "arg1", + "param2" => "arg2")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1arg1arg2 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults3'.arg1 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_013w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_013w.phpt new file mode 100644 index 0000000000..8b847a85ec --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_013w.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple Doc Lit 013 (php/wsdl): echoMultipleFaults3(2) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults3(array("whichFault" => 2, + "param1" => "arg1", + "param2" => "arg2")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +2arg1arg2 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults3'.arg2 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_014w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_014w.phpt new file mode 100644 index 0000000000..3a3e61a464 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_014w.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple Doc Lit 014 (php/wsdl): echoMultipleFaults3(3) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults3(array("whichFault" => 3, + "param1" => "arg1", + "param2" => "arg2")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +3arg1arg2 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults3'.arg1 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_015w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_015w.phpt new file mode 100644 index 0000000000..b831484d70 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_015w.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple Doc Lit 015 (php/wsdl): echoMultipleFaults4(1) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults4(array("whichFault" => 1, + "param1" => 162, + "param2" => 1)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +11621 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults4'.162 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_016w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_016w.phpt new file mode 100644 index 0000000000..cbf7f16f28 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_016w.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple Doc Lit 016 (php/wsdl): echoMultipleFaults4(2) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults4(array("whichFault" => 2, + "param1" => 162, + "param2" => 1)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +21621 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults4'.1 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_017w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_017w.phpt new file mode 100644 index 0000000000..aa7e28527a --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_doclit_017w.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple Doc Lit 017 (php/wsdl): echoMultipleFaults4(3) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults4(array("whichFault" => 3, + "param1" => 162, + "param2" => 1)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_doclit.inc"); +echo "ok\n"; +?> +--EXPECT-- + +31621 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults4'.162 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_001w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_001w.phpt new file mode 100644 index 0000000000..f4e1b570ae --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_001w.phpt @@ -0,0 +1,18 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple RPC Enc 001 (php/wsdl): echoEmptyFault +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoEmptyFault(); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + +SOAP-ENV:ServerFault in response to 'echoEmptyFault'. diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_002w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_002w.phpt new file mode 100644 index 0000000000..20dad785f5 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_002w.phpt @@ -0,0 +1,18 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple RPC Enc 002 (php/wsdl): echoStringFault +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoStringFault("Hello World"); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +Hello World + +SOAP-ENV:ServerFault in response to 'echoStringFault'.Hello World diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_003w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_003w.phpt new file mode 100644 index 0000000000..eb7638371c --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_003w.phpt @@ -0,0 +1,18 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple RPC Enc 003 (php/wsdl): echoIntArrayFault +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoIntArrayFault(array(34,12.345)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +3412 + +SOAP-ENV:ServerFault in response to 'echoIntArrayFault'.3412 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_004w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_004w.phpt new file mode 100644 index 0000000000..7bf250f6b9 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_004w.phpt @@ -0,0 +1,18 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple RPC Enc 004 (php/wsdl): echoMultipleFaults1(1) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults1(1,"Hello world",array(12.345,45,678)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1Hello world12.34545678 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults1'. diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_005w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_005w.phpt new file mode 100644 index 0000000000..e2c706bd0a --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_005w.phpt @@ -0,0 +1,18 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple RPC Enc 005 (php/wsdl): echoMultipleFaults1(2) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults1(2,"Hello world",array(12.345,45,678)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +2Hello world12.34545678 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults1'.Hello world diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_006w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_006w.phpt new file mode 100644 index 0000000000..e4a397d8e1 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_006w.phpt @@ -0,0 +1,18 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple RPC Enc 006 (php/wsdl): echoMultipleFaults1(3) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults1(3,"Hello world",array(12.345,45,678)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +3Hello world12.34545678 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults1'.12.34545678 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_007w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_007w.phpt new file mode 100644 index 0000000000..92700c5741 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_007w.phpt @@ -0,0 +1,18 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple RPC Enc 007 (php/wsdl): echoMultipleFaults1(4) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults1(4,"Hello world",array(12.345,45,678)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +4Hello world12.34545678 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults1'. diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_008w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_008w.phpt new file mode 100644 index 0000000000..057ff4d54f --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_008w.phpt @@ -0,0 +1,18 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple RPC Enc 008 (php/wsdl): echoMultipleFaults2(1) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults2(1, "Hello World", 12.345, array("one","two","three")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1Hello World12.345onetwothree + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults2'.12.345 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_009w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_009w.phpt new file mode 100644 index 0000000000..18f1d8d23d --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_009w.phpt @@ -0,0 +1,18 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple RPC Enc 009 (php/wsdl): echoMultipleFaults2(2) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults2(2, "Hello World", 12.345, array("one","two","three")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +2Hello World12.345onetwothree + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults2'.Hello World diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_010w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_010w.phpt new file mode 100644 index 0000000000..faca6c1225 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_010w.phpt @@ -0,0 +1,18 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple RPC Enc 010 (php/wsdl): echoMultipleFaults2(3) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults2(3, "Hello World", 12.345, array("one","two","three")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +3Hello World12.345onetwothree + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults2'.onetwothree diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_011w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_011w.phpt new file mode 100644 index 0000000000..5e93891589 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_011w.phpt @@ -0,0 +1,18 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple RPC Enc 011 (php/wsdl): echoMultipleFaults2(4) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults2(4, "Hello World", 12.345, array("one","two","three")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +4Hello World12.345onetwothree + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults2'.12.345 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_012w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_012w.phpt new file mode 100644 index 0000000000..073a2a0f79 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_012w.phpt @@ -0,0 +1,18 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple RPC Enc 012 (php/wsdl): echoMultipleFaults3(1) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults3(1,"arg1","arg2"); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1arg1arg2 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults3'.arg1 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_013w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_013w.phpt new file mode 100644 index 0000000000..b0113ae342 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_013w.phpt @@ -0,0 +1,18 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple RPC Enc 013 (php/wsdl): echoMultipleFaults3(2) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults3(2,"arg1","arg2"); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +2arg1arg2 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults3'.arg2 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_014w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_014w.phpt new file mode 100644 index 0000000000..ee5b4cb0e6 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_014w.phpt @@ -0,0 +1,18 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple RPC Enc 014 (php/wsdl): echoMultipleFaults3(3) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults3(3,"arg1","arg2"); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +3arg1arg2 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults3'.arg1 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_015w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_015w.phpt new file mode 100644 index 0000000000..4a9cb4a816 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_015w.phpt @@ -0,0 +1,18 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple RPC Enc 015 (php/wsdl): echoMultipleFaults4(1) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults4(1, 162, 1); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +11621 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults4'.162 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_016w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_016w.phpt new file mode 100644 index 0000000000..d8a47d009a --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_016w.phpt @@ -0,0 +1,18 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple RPC Enc 016 (php/wsdl): echoMultipleFaults4(2) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults4(2, 162, 1); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +21621 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults4'.1 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_017w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_017w.phpt new file mode 100644 index 0000000000..5aaec3088f --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_simple_rpcenc_017w.phpt @@ -0,0 +1,18 @@ +--TEST-- +SOAP Interop Round4 GroupH Simple RPC Enc 017 (php/wsdl): echoMultipleFaults4(3) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoMultipleFaults4(3, 162, 1); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_simple_rpcenc.inc"); +echo "ok\n"; +?> +--EXPECT-- + +31621 + +SOAP-ENV:ServerFault in response to 'echoMultipleFaults4'.162 diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_soapfault_001w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_soapfault_001w.phpt new file mode 100644 index 0000000000..d50637afe1 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_soapfault_001w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round4 GroupH SoapFault 001 (php/wsdl): echoVersionMismatchFault(SOAP 1.1) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoVersionMismatchFault(); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_soapfault.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +ok diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_soapfault_002w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_soapfault_002w.phpt new file mode 100644 index 0000000000..f31cd7c6a5 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_soapfault_002w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round4 GroupH SoapFault 002 (php/wsdl): echoVersionMismatchFault(SOAP 1.2) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0,"soap_version"=>SOAP_1_2)); +$client->echoVersionMismatchFault(); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_soapfault.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +ok diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_soapfault_003w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_soapfault_003w.phpt new file mode 100644 index 0000000000..398d70eb7c --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_soapfault_003w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round4 GroupH SoapFault 003 (php/wsdl): echoVersionMismatchFault(unknown version) +--SKIPIF-- + +--FILE-- + + +EOF; +echo $HTTP_RAW_POST_DATA."\n"; +include("round4_groupH_soapfault.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + +SOAP-ENV:VersionMismatchWrong Version diff --git a/ext/soap/tests/interop/Round4/GroupH/r4_groupH_soapfault_004w.phpt b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_soapfault_004w.phpt new file mode 100644 index 0000000000..11069bc58e --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/r4_groupH_soapfault_004w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round4 GroupH SoapFault 004 (php/wsdl): echoMustUnderstandFault +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->__soapCall("echoVersionMismatchFault",array(), null, $hdr); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupH_soapfault.inc"); +echo "ok\n"; +?> +--EXPECT-- + +Hello World + +SOAP-ENV:MustUnderstandHeader not understood diff --git a/ext/soap/tests/interop/Round4/GroupH/round4_groupH_complex_doclit.inc b/ext/soap/tests/interop/Round4/GroupH/round4_groupH_complex_doclit.inc new file mode 100644 index 0000000000..1c31aa3da0 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/round4_groupH_complex_doclit.inc @@ -0,0 +1,38 @@ +$input), "ComplexFault"); + } + + function echoBaseStructFault($input) { + return new SoapFault("Server", "Fault in response to 'echoBaseStructFault'.", null, $input, "ComplexFault"); + } + + function echoExtendedStructFault($input) { + return new SoapFault("Server", "Fault in response to 'echoExtendedStructFault'.", null, $input, "ComplexFault"); + } + + function echoMultipleFaults1($input) { + if ($input->whichFault == 2) { + return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, $input->param2, "ComplexFault2"); + } else { + return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, array("soapStruct"=>$input->param1), "ComplexFault1"); + } + } + + function echoMultipleFaults2($input) { + if ($input->whichFault == 2) { + return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $input->param2, "ComplexFault2"); + } else if ($input->whichFault == 3) { + return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $input->param3, "ComplexFault3"); + } else { + return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $input->param1, "ComplexFault1"); + } + } +} + +$server = new SoapServer(dirname(__FILE__)."/round4_groupH_complex_doclit.wsdl"); +$server->setClass("SOAP_Interop_GroupH"); +$server->handle(); +?> diff --git a/ext/soap/tests/interop/Round4/GroupH/round4_groupH_complex_doclit.wsdl b/ext/soap/tests/interop/Round4/GroupH/round4_groupH_complex_doclit.wsdl new file mode 100644 index 0000000000..90a5884230 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/round4_groupH_complex_doclit.wsdl @@ -0,0 +1,329 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round4/GroupH/round4_groupH_complex_rpcenc.inc b/ext/soap/tests/interop/Round4/GroupH/round4_groupH_complex_rpcenc.inc new file mode 100644 index 0000000000..6dec186474 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/round4_groupH_complex_rpcenc.inc @@ -0,0 +1,38 @@ +$s1), "ComplexFault1"); + } + } + + function echoMultipleFaults2($which, $s1, $s2, $s3) { + if ($which == 2) { + return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $s2, "ComplexFault2"); + } else if ($which == 3) { + return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $s3, "ComplexFault3"); + } else { + return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $s1, "ComplexFault1"); + } + } +} + +$server = new SoapServer(dirname(__FILE__)."/round4_groupH_complex_rpcenc.wsdl"); +$server->setClass("SOAP_Interop_GroupH"); +$server->handle(); +?> diff --git a/ext/soap/tests/interop/Round4/GroupH/round4_groupH_complex_rpcenc.wsdl b/ext/soap/tests/interop/Round4/GroupH/round4_groupH_complex_rpcenc.wsdl new file mode 100644 index 0000000000..86f58520a4 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/round4_groupH_complex_rpcenc.wsdl @@ -0,0 +1,301 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round4/GroupH/round4_groupH_simple_doclit.inc b/ext/soap/tests/interop/Round4/GroupH/round4_groupH_simple_doclit.inc new file mode 100644 index 0000000000..6a04cfd2d9 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/round4_groupH_simple_doclit.inc @@ -0,0 +1,56 @@ +whichFault == 2) { + return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, $input->param1, "SimpleFault2"); + } else if ($input->whichFault == 3) { + return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, $input->param2, "SimpleFault3"); + } else { + return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, null, "SimpleFault1"); + } + } + + function echoMultipleFaults2($input) { + if ($input->whichFault == 2) { + return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $input->param1, "SimpleFault1"); + } else if ($input->whichFault == 3) { + return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $input->param3, "SimpleFault3"); + } else { + return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $input->param2, "SimpleFault2"); + } + } + + function echoMultipleFaults3($input) { + if ($input->whichFault == 2) { + return new SoapFault("Server", "Fault in response to 'echoMultipleFaults3'.", null, $input->param2, "SimpleFault2"); + } else { + return new SoapFault("Server", "Fault in response to 'echoMultipleFaults3'.", null, $input->param1, "SimpleFault1"); + } + } + + function echoMultipleFaults4($input) { + if ($input->whichFault == 2) { + return new SoapFault("Server", "Fault in response to 'echoMultipleFaults4'.", null, $input->param2, "SimpleFault2"); + } else { + return new SoapFault("Server", "Fault in response to 'echoMultipleFaults4'.", null, $input->param1, "SimpleFault1"); + } + } +} + +$server = new SoapServer(dirname(__FILE__)."/round4_groupH_simple_doclit.wsdl"); +$server->setClass("SOAP_Interop_GroupH"); +$server->handle(); +?> diff --git a/ext/soap/tests/interop/Round4/GroupH/round4_groupH_simple_doclit.wsdl b/ext/soap/tests/interop/Round4/GroupH/round4_groupH_simple_doclit.wsdl new file mode 100644 index 0000000000..3311ff1a1b --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/round4_groupH_simple_doclit.wsdl @@ -0,0 +1,418 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round4/GroupH/round4_groupH_simple_rpcenc.inc b/ext/soap/tests/interop/Round4/GroupH/round4_groupH_simple_rpcenc.inc new file mode 100644 index 0000000000..0b85a34f99 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/round4_groupH_simple_rpcenc.inc @@ -0,0 +1,56 @@ +setClass("SOAP_Interop_GroupH"); +$server->handle(); +?> diff --git a/ext/soap/tests/interop/Round4/GroupH/round4_groupH_simple_rpcenc.wsdl b/ext/soap/tests/interop/Round4/GroupH/round4_groupH_simple_rpcenc.wsdl new file mode 100644 index 0000000000..2eb40856f7 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/round4_groupH_simple_rpcenc.wsdl @@ -0,0 +1,408 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round4/GroupH/round4_groupH_soapfault.inc b/ext/soap/tests/interop/Round4/GroupH/round4_groupH_soapfault.inc new file mode 100644 index 0000000000..cf6c3741c6 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/round4_groupH_soapfault.inc @@ -0,0 +1,22 @@ +setClass("SOAP_Interop_GroupH"); +$server->handle(); +?> diff --git a/ext/soap/tests/interop/Round4/GroupH/round4_groupH_soapfault.wsdl b/ext/soap/tests/interop/Round4/GroupH/round4_groupH_soapfault.wsdl new file mode 100644 index 0000000000..4f49b8f1b2 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/round4_groupH_soapfault.wsdl @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/interop/Round4/GroupH/skipif.inc b/ext/soap/tests/interop/Round4/GroupH/skipif.inc new file mode 100644 index 0000000000..fa8574e6a2 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupH/skipif.inc @@ -0,0 +1,3 @@ + diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_001w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_001w.phpt new file mode 100644 index 0000000000..2ed20e94b3 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_001w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 001 (php/wsdl): echoVoid +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoVoid(); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_002w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_002w.phpt new file mode 100644 index 0000000000..27ff0fcc6b --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_002w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 002 (php/wsdl): echoInteger +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoInteger(array("inputInteger"=>22)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +22 + +22 +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_003w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_003w.phpt new file mode 100644 index 0000000000..29ea32c000 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_003w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 003 (php/wsdl): echoFloat +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoFloat(array("inputFloat"=>12.345)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +12.345 + +12.345 +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_004w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_004w.phpt new file mode 100644 index 0000000000..3e765bbdc1 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_004w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 004 (php/wsdl): echoString +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoString(array("inputString"=>"Hello World")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +Hello World + +Hello World +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_005w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_005w.phpt new file mode 100644 index 0000000000..6960190b65 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_005w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 005 (php/wsdl): echoString(empty) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoString(array()); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_006w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_006w.phpt new file mode 100644 index 0000000000..58e6b46b0f --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_006w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 006 (php/wsdl): echoBase64 +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoBase64(array("inputBase64"=>"AID/AEhFTExPAH8=")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +AID/AEhFTExPAH8= + +AID/AEhFTExPAH8= +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_007w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_007w.phpt new file mode 100644 index 0000000000..ddde658fb6 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_007w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 007 (php/wsdl): echoDate +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoDate(array("inputDate"=>"2002-12-22T21:41:17Z")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +2002-12-22T21:41:17Z + +2002-12-22T21:41:17Z +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_008w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_008w.phpt new file mode 100644 index 0000000000..23dc33bdcd --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_008w.phpt @@ -0,0 +1,27 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 008 (php/wsdl): echoComplexType +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +$struct = new SOAPComplexType('arg',34,325.325); +$client = new SoapClient(dirname(__FILE__)."/round4_groupI_xsd.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoComplexType(array("inputComplexType"=>$struct)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +34arg325.325 + +34arg325.325 +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_009w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_009w.phpt new file mode 100644 index 0000000000..9182029fbf --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_009w.phpt @@ -0,0 +1,28 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 009 (php/wsdl): echoComplexType(minOccur=0) +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +$struct = new SOAPComplexType('arg',34,325.325); +unset($struct->varString); +$client = new SoapClient(dirname(__FILE__)."/round4_groupI_xsd.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoComplexType(array("inputComplexType"=>$struct)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +34325.325 + +34325.325 +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_010w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_010w.phpt new file mode 100644 index 0000000000..bb6e77f3f0 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_010w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 010 (php/wsdl): echoIntegerMultiOccurs +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoIntegerMultiOccurs(array("inputIntegerMultiOccurs"=>array(22,29,36))); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +222936 + +222936 +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_011w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_011w.phpt new file mode 100644 index 0000000000..4b268a7d49 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_011w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 011 (php/wsdl): echoFloatMultiOccurs +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoFloatMultiOccurs(array("inputFloatMultiOccurs"=>array(22.5,12.345))); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +22.512.345 + +22.512.345 +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_012w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_012w.phpt new file mode 100644 index 0000000000..c2c47f4c70 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_012w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 012 (php/wsdl): echoStringMultiOccurs +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoStringMultiOccurs(array("inputStringMultiOccurs"=>array("arg1","arg2","arg3"))); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg1arg2arg3 + +arg1arg2arg3 +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_013w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_013w.phpt new file mode 100644 index 0000000000..5c2f6ec4e9 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_013w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 013 (php/wsdl): echoStringMultiOccurs(nil) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoStringMultiOccurs(array("inputStringMultiOccurs"=>array("arg1",NULL,"arg3"))); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg1arg3 + +arg1arg3 +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_014w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_014w.phpt new file mode 100644 index 0000000000..0da7004009 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_014w.phpt @@ -0,0 +1,27 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 014 (php/wsdl): echoComplexTypeMultiOccurs(1) +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +$struct = new SOAPComplexType('arg',34,325.325); +$client = new SoapClient(dirname(__FILE__)."/round4_groupI_xsd.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoComplexTypeMultiOccurs(array("inputComplexTypeMultiOccurs"=>array($struct,$struct,$struct))); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +34arg325.32534arg325.32534arg325.325 + +34arg325.32534arg325.32534arg325.325 +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_015w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_015w.phpt new file mode 100644 index 0000000000..52b08c62ef --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_015w.phpt @@ -0,0 +1,27 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 015 (php/wsdl): echoComplexTypeMultiOccurs(nil) +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +$struct = new SOAPComplexType('arg',34,325.325); +$client = new SoapClient(dirname(__FILE__)."/round4_groupI_xsd.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoComplexTypeMultiOccurs(array("inputComplexTypeMultiOccurs"=>array($struct,null,$struct))); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +34arg325.32534arg325.325 + +34arg325.32534arg325.325 +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_016w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_016w.phpt new file mode 100644 index 0000000000..a5f060cae1 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_016w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 016 (php/wsdl): echoDecimal +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoDecimal(array("inputDecimal"=>"123456789.123456789")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +123456789.123456789 + +123456789.123456789 +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_017w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_017w.phpt new file mode 100644 index 0000000000..7661a60eb4 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_017w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 017 (php/wsdl): echoBoolean +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoBoolean(array("inputBoolean"=>true)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +1 + +1 +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_018w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_018w.phpt new file mode 100644 index 0000000000..dde09df21d --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_018w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 018 (php/wsdl): echoHexBinary +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoHexBinary(array("inputHexBinary"=>"80FF00017F")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +80FF00017F + +80FF00017F +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_019w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_019w.phpt new file mode 100644 index 0000000000..4b81f6e674 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_019w.phpt @@ -0,0 +1,27 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 019 (php/wsdl): echoComplexTypeAsSimpleTypes +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +$struct = new SOAPComplexType('arg',34,325.325); +$client = new SoapClient(dirname(__FILE__)."/round4_groupI_xsd.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoComplexTypeAsSimpleTypes(array("inputComplexType"=>$struct)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +34arg325.325 + +arg34325.325 +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_020w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_020w.phpt new file mode 100644 index 0000000000..afc8ece102 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_020w.phpt @@ -0,0 +1,28 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 020 (php/wsdl): echoComplexTypeAsSimpleTypes(minOccurs=0) +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +$struct = new SOAPComplexType('arg',34,325.325); +unset($struct->varString); +$client = new SoapClient(dirname(__FILE__)."/round4_groupI_xsd.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoComplexTypeAsSimpleTypes(array("inputComplexType"=>$struct)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +34325.325 + +34325.325 +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_021w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_021w.phpt new file mode 100644 index 0000000000..cd92d5116a --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_021w.phpt @@ -0,0 +1,21 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 021 (php/wsdl): echoSimpleTypesAsComplexType +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoSimpleTypesAsComplexType(array("inputInteger"=>34, + "inputFloat"=>12.345, + "inputString"=>"arg")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg3412.345 + +34arg12.345 +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_022w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_022w.phpt new file mode 100644 index 0000000000..cd408dfb4c --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_022w.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 022 (php/wsdl): echoSimpleTypesAsComplexType(minOccurs=0) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoSimpleTypesAsComplexType(array("inputInteger"=>34, + "inputFloat"=>12.345)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +3412.345 + +3412.345 +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_023w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_023w.phpt new file mode 100644 index 0000000000..d960748ce8 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_023w.phpt @@ -0,0 +1,35 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 023 (php/wsdl): echoNestedComplexType +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +class SOAPComplexTypeComplexType { + function SOAPComplexTypeComplexType($s, $i, $f, $c) { + $this->varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + $this->varComplexType = $c; + } +} +$struct = new SOAPComplexTypeComplexType("arg",34,12.345,new SOAPComplexType("arg",43,54.321)); +$client = new SoapClient(dirname(__FILE__)."/round4_groupI_xsd.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoNestedComplexType(array("inputComplexType"=>$struct)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg3412.34543arg54.321 + +arg3412.34543arg54.321 +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_024w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_024w.phpt new file mode 100644 index 0000000000..4152b992c7 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_024w.phpt @@ -0,0 +1,29 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 024 (php/wsdl): echoNestedComplexType(minOccurs=0) +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + $this->varComplexType = $c; + } +} +$struct = new SOAPComplexTypeComplexType("arg",34,12.345,NULL); +unset($struct->varComplexType); +$client = new SoapClient(dirname(__FILE__)."/round4_groupI_xsd.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoNestedComplexType(array("inputComplexType"=>$struct)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg3412.345 + +arg3412.345 +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_025w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_025w.phpt new file mode 100644 index 0000000000..cba1d1c667 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_025w.phpt @@ -0,0 +1,28 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 025 (php/wsdl): echoNestedMultiOccurs +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + $this->varMultiOccurs = $c; + } +} +$struct = new SOAPMultiOccursComplexType("arg",34,12.345,array("red","green","blue")); +$client = new SoapClient(dirname(__FILE__)."/round4_groupI_xsd.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoNestedMultiOccurs(array("inputComplexType"=>$struct)); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg3412.345redgreenblue + +arg3412.345redgreenblue +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_026w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_026w.phpt new file mode 100644 index 0000000000..07e24f52c6 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_026w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 026 (php/wsdl): echoChoice +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoChoice(array("inputChoice"=>(object)array("name1"=>"Hello World"))); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +Hello World + +Hello World +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_027w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_027w.phpt new file mode 100644 index 0000000000..e4a270a21c --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_027w.phpt @@ -0,0 +1,19 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 027 (php/wsdl): echoEnum +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->echoEnum(array("inputEnum"=>"bitTwo")); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +bitTwo + +bitTwo +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_028w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_028w.phpt new file mode 100644 index 0000000000..b9e13e2fb6 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_028w.phpt @@ -0,0 +1,27 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 028 (php/wsdl): echoAnyType +--SKIPIF-- + +--FILE-- +varString = $s; + $this->varInt = $i; + $this->varFloat = $f; + } +} +$struct = new SOAPComplexType('arg',34,325.325); +$client = new SoapClient(dirname(__FILE__)."/round4_groupI_xsd.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->echoAnyType(array('inputAnyType'=>new SoapVar($struct,SOAP_ENC_OBJECT,"SOAPComplexType","http://soapinterop.org/xsd"))); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +34arg325.325 + +34arg325.325 +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_029w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_029w.phpt new file mode 100644 index 0000000000..5af5b8bc28 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_029w.phpt @@ -0,0 +1,15 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 029 (php/wsdl): echoAnyElement +--SKIPIF-- + is not supported yet'); ?> +--FILE-- +1,"exceptions"=>0)); +$client->echoAnyElement(array("inputAny"=>(object)array("something"=>"Hello World"))); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_030w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_030w.phpt new file mode 100644 index 0000000000..d7f748743c --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_030w.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 030 (php/wsdl): echoVoidSoapHeader(1) +--SKIPIF-- + +--FILE-- +"Hello World"), 1); +$client = new SoapClient(dirname(__FILE__)."/round4_groupI_xsd.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoVoidSoapHeader",array(),null,$hdr); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +Hello World + +Hello World +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_031w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_031w.phpt new file mode 100644 index 0000000000..b4273bf54b --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_031w.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 031 (php/wsdl): echoVoidSoapHeader(2) +--SKIPIF-- + +--FILE-- +1,"exceptions"=>0)); +$client->__soapCall("echoVoidSoapHeader",array(),null,$hdr); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + + + + +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_032w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_032w.phpt new file mode 100644 index 0000000000..ffd18e3df3 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_032w.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 032 (php/wsdl): echoVoidSoapHeader(3) +--SKIPIF-- + +--FILE-- +34,"varString"=>"arg","varFloat"=>12.345), 1); +$client = new SoapClient(dirname(__FILE__)."/round4_groupI_xsd.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoVoidSoapHeader",array(),null,$hdr); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg3412.345 + +arg3412.345 +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_033w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_033w.phpt new file mode 100644 index 0000000000..3c024fc002 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_033w.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 033 (php/wsdl): echoVoidSoapHeader(4) +--SKIPIF-- + +--FILE-- +34,"varFloat"=>12.345), 1); +$client = new SoapClient(dirname(__FILE__)."/round4_groupI_xsd.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoVoidSoapHeader",array(),null,$hdr); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +3412.345 + +3412.345 +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_034w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_034w.phpt new file mode 100644 index 0000000000..d3cec8cda7 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_034w.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 034 (php/wsdl): echoVoidSoapHeader(5) +--SKIPIF-- + +--FILE-- +"Hello World"), 1, SOAP_ACTOR_NEXT); +$client = new SoapClient(dirname(__FILE__)."/round4_groupI_xsd.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoVoidSoapHeader",array(),null,$hdr); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +Hello World + +Hello World +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_035w.phpt b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_035w.phpt new file mode 100644 index 0000000000..6dc0b927ff --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_035w.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP Interop Round4 GroupI XSD 035 (php/wsdl): echoVoidSoapHeader(6) +--SKIPIF-- + +--FILE-- +34,"varString"=>"arg","varFloat"=>12.345), 1, SOAP_ACTOR_NEXT); +$client = new SoapClient(dirname(__FILE__)."/round4_groupI_xsd.wsdl",array("trace"=>1,"exceptions"=>0)); +$client->__soapCall("echoVoidSoapHeader",array(),null,$hdr); +echo $client->__getlastrequest(); +$HTTP_RAW_POST_DATA = $client->__getlastrequest(); +include("round4_groupI_xsd.inc"); +echo "ok\n"; +?> +--EXPECT-- + +arg3412.345 + +arg3412.345 +ok diff --git a/ext/soap/tests/interop/Round4/GroupI/round4_groupI_xsd.inc b/ext/soap/tests/interop/Round4/GroupI/round4_groupI_xsd.inc new file mode 100644 index 0000000000..0c50f199e4 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/round4_groupI_xsd.inc @@ -0,0 +1,198 @@ +inputString)) { + return array("return"=>$inputString->inputString); + } else { + return $inputString; + } + } + + function echoInteger($inputInteger) + { + return array("return"=>$inputInteger->inputInteger); + } + + function echoFloat($inputFloat) + { + return array("return"=>$inputFloat->inputFloat); + } + + function echoVoid() + { + } + + function echoBase64($inputBase64) + { + if (isset($inputBase64->inputBase64)) { + return array("return"=>$inputBase64->inputBase64); + } else { + return $inputBase64; + } + } + + function echoDate($timeInstant) + { + return array("return"=>$timeInstant->inputDate); + } + + function echoComplexType($inputComplexType) + { + if (isset($inputComplexType->inputComplexType)) { + return array("return"=>$inputComplexType->inputComplexType); + } else { + return $inputComplexType; + } + } + + function echoIntegerMultiOccurs($input) + { + if (isset($input->inputIntegerMultiOccurs->int)) { + return array("return"=>$input->inputIntegerMultiOccurs->int); + } else { + return array(); + } + } + + function echoFloatMultiOccurs($input) + { + if (isset($input->inputFloatMultiOccurs->float)) { + return array("return"=>$input->inputFloatMultiOccurs->float); + } else { + return array(); + } + } + + function echoStringMultiOccurs($input) + { + if (isset($input->inputStringMultiOccurs->string)) { + return array("return"=>$input->inputStringMultiOccurs->string); + } else { + return array(); + } + } + + function echoComplexTypeMultiOccurs($input) + { + if (isset($input->inputComplexTypeMultiOccurs->SOAPComplexType)) { + return array("return"=>$input->inputComplexTypeMultiOccurs->SOAPComplexType); + } else { + return array(); + } + } + + function echoHexBinary($hb) + { + if (isset($hb->inputHexBinary)) { + return array("return"=>$hb->inputHexBinary); + } else { + return $hb; + } + } + + function echoDecimal($dec) + { + return array("return"=>$dec->inputDecimal); + } + + function echoBoolean($boolean) + { + return array("return"=>$boolean->inputBoolean); + } + + function echoComplexTypeAsSimpleTypes($input) + { + if (isset($input->inputComplexType)) { + $ret = array("outputInteger" => $input->inputComplexType->varInt, + "outputFloat" => $input->inputComplexType->varFloat); + if (isset($input->inputComplexType->varString)) { + $ret["outputString"] = $input->inputComplexType->varString; + } + return $ret; + } else { + return array(); + } + } + + function echoSimpleTypesAsComplexType($input) + { + $ret = array("varInt" => $input->inputInteger, + "varFloat" => $input->inputFloat); + if (isset($input->inputString)) { + $ret["varString"] = $input->inputString; + } + return array("return"=>$ret); + } + + function echoNestedComplexType($inputComplexType) + { + if (isset($inputComplexType->inputComplexType)) { + return array("return"=>$inputComplexType->inputComplexType); + } else { + return $inputComplexType; + } + } + + function echoNestedMultiOccurs($inputComplexType) + { + if (isset($inputComplexType->inputComplexType)) { + return array("return"=>$inputComplexType->inputComplexType); + } else { + return $inputComplexType; + } + } + + function echoChoice($input) + { + if (isset($input->inputChoice)) { + return array("return"=>$input->inputChoice); + } else { + return $input; + } + } + + function echoEnum($input) + { + return array("return"=>$input->inputEnum); + } + + function echoAnyType($input) + { + if (isset($input->inputAnyType)) { + return array("return"=>$input->inputAnyType); + } else { + return $input; + } + } + + function echoAnyElement($input) + { + if (isset($input->inputAny)) { + return array("return"=>$input->inputAny); + } else { + return $input; + } + } + + function echoVoidSoapHeader() + { + } + + function echoMeStringRequest($input) + { + return new SoapHeader("http://soapinterop.org/","echoMeStringResponse",$input); + } + + function echoMeComplexTypeRequest($input) + { + return new SoapHeader("http://soapinterop.org/","echoMeComplexTypeResponse",$input); + } + +} + +$server = new SoapServer(dirname(__FILE__)."/round4_groupI_xsd.wsdl"); +$server->setClass("SOAP_Interop_GroupI"); +$server->handle(); +?> diff --git a/ext/soap/tests/interop/Round4/GroupI/round4_groupI_xsd.wsdl b/ext/soap/tests/interop/Round4/GroupI/round4_groupI_xsd.wsdl new file mode 100644 index 0000000000..b62084669b --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/round4_groupI_xsd.wsdl @@ -0,0 +1,1113 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + These operations implement DOC/LIT SOAP operations, for interop testing. Please email johnko@microsoft.com with any questions/coments. + + + + + + + + \ No newline at end of file diff --git a/ext/soap/tests/interop/Round4/GroupI/skipif.inc b/ext/soap/tests/interop/Round4/GroupI/skipif.inc new file mode 100644 index 0000000000..fa8574e6a2 --- /dev/null +++ b/ext/soap/tests/interop/Round4/GroupI/skipif.inc @@ -0,0 +1,3 @@ +