diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2013-03-14 05:42:27 +0000 |
---|---|---|
committer | <> | 2013-04-03 16:25:08 +0000 |
commit | c4dd7a1a684490673e25aaf4fabec5df138854c4 (patch) | |
tree | 4d57c44caae4480efff02b90b9be86f44bf25409 /ext/soap/tests/interop/Round3/GroupF | |
download | php2-master.tar.gz |
Imported from /home/lorry/working-area/delta_php2/php-5.4.13.tar.bz2.HEADphp-5.4.13master
Diffstat (limited to 'ext/soap/tests/interop/Round3/GroupF')
12 files changed, 382 insertions, 0 deletions
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 0000000..bc6af1a --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/r3_groupF_ext_001w.phpt @@ -0,0 +1,21 @@ +--TEST-- +SOAP Interop Round3 GroupF Extensibility 001 (php/wsdl): echoString +--SKIPIF-- +<?php require_once('skipif.inc'); ?> +--INI-- +soap.wsdl_cache_enabled=0 +--FILE-- +<?php +$client = new SoapClient(dirname(__FILE__)."/round3_groupF_ext.wsdl",array("trace"=>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-- +<?xml version="1.0" encoding="UTF-8"?> +<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://soapinterop.org/xsd"><SOAP-ENV:Body><ns1:echoStringParam>Hello World</ns1:echoStringParam></SOAP-ENV:Body></SOAP-ENV:Envelope> +<?xml version="1.0" encoding="UTF-8"?> +<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://soapinterop.org/xsd"><SOAP-ENV:Body><ns1:echoStringReturn>Hello World</ns1:echoStringReturn></SOAP-ENV:Body></SOAP-ENV:Envelope> +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 0000000..fa8940e --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/r3_groupF_extreq_001w.phpt @@ -0,0 +1,17 @@ +--TEST-- +SOAP Interop Round3 GroupF Extensibility Required 001 (php/wsdl): echoString +--SKIPIF-- +<?php require_once('skipif.inc'); ?> +--INI-- +soap.wsdl_cache_enabled=0 +--FILE-- +<?php +$client = new SoapClient(dirname(__FILE__)."/round3_groupF_extreq.wsdl",array("trace"=>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 0000000..65bda0c --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/r3_groupF_headers_001w.phpt @@ -0,0 +1,21 @@ +--TEST-- +SOAP Interop Round3 GroupF Headers 001 (php/wsdl): echoString +--SKIPIF-- +<?php require_once('skipif.inc'); ?> +--INI-- +soap.wsdl_cache_enabled=0 +--FILE-- +<?php +$client = new SoapClient(dirname(__FILE__)."/round3_groupF_headers.wsdl",array("trace"=>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-- +<?xml version="1.0" encoding="UTF-8"?> +<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://soapinterop.org/xsd"><SOAP-ENV:Body><ns1:echoStringParam>Hello World</ns1:echoStringParam></SOAP-ENV:Body></SOAP-ENV:Envelope> +<?xml version="1.0" encoding="UTF-8"?> +<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://soapinterop.org/xsd"><SOAP-ENV:Body><ns1:echoStringReturn>Hello World</ns1:echoStringReturn></SOAP-ENV:Body></SOAP-ENV:Envelope> +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 0000000..ae723a3 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/r3_groupF_headers_002w.phpt @@ -0,0 +1,22 @@ +--TEST-- +SOAP Interop Round3 GroupF Headers 002 (php/wsdl): echoString +--SKIPIF-- +<?php require_once('skipif.inc'); ?> +--INI-- +soap.wsdl_cache_enabled=0 +--FILE-- +<?php +$hdr = new SoapHeader("http://soapinterop.org/xsd","Header1", array("int"=>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-- +<?xml version="1.0" encoding="UTF-8"?> +<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://soapinterop.org/xsd"><SOAP-ENV:Header><ns1:Header1><ns1:string>arg</ns1:string><ns1:int>34</ns1:int></ns1:Header1></SOAP-ENV:Header><SOAP-ENV:Body><ns1:echoStringParam>Hello World</ns1:echoStringParam></SOAP-ENV:Body></SOAP-ENV:Envelope> +<?xml version="1.0" encoding="UTF-8"?> +<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://soapinterop.org/xsd"><SOAP-ENV:Body><ns1:echoStringReturn>Hello World</ns1:echoStringReturn></SOAP-ENV:Body></SOAP-ENV:Envelope> +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 0000000..b4cb283 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/r3_groupF_headers_003w.phpt @@ -0,0 +1,22 @@ +--TEST-- +SOAP Interop Round3 GroupF Headers 003 (php/wsdl): echoString +--SKIPIF-- +<?php require_once('skipif.inc'); ?> +--INI-- +soap.wsdl_cache_enabled=0 +--FILE-- +<?php +$hdr = new SoapHeader("http://soapinterop.org/xsd","Header2", array("int"=>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-- +<?xml version="1.0" encoding="UTF-8"?> +<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://soapinterop.org/xsd"><SOAP-ENV:Header><ns1:Header2><ns1:int>34</ns1:int><ns1:string>arg</ns1:string></ns1:Header2></SOAP-ENV:Header><SOAP-ENV:Body><ns1:echoStringParam>Hello World</ns1:echoStringParam></SOAP-ENV:Body></SOAP-ENV:Envelope> +<?xml version="1.0" encoding="UTF-8"?> +<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://soapinterop.org/xsd"><SOAP-ENV:Body><ns1:echoStringReturn>Hello World</ns1:echoStringReturn></SOAP-ENV:Body></SOAP-ENV:Envelope> +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 0000000..f0a427a --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/r3_groupF_headers_004w.phpt @@ -0,0 +1,25 @@ +--TEST-- +SOAP Interop Round3 GroupF Headers 004 (php/wsdl): echoString +--SKIPIF-- +<?php require_once('skipif.inc'); ?> +--INI-- +soap.wsdl_cache_enabled=0 +--FILE-- +<?php +$hdr = array( + new SoapHeader("http://soapinterop.org/xsd","Header1", array("int"=>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-- +<?xml version="1.0" encoding="UTF-8"?> +<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://soapinterop.org/xsd"><SOAP-ENV:Header><ns1:Header1><ns1:string>arg1</ns1:string><ns1:int>34</ns1:int></ns1:Header1><ns1:Header2><ns1:int>43</ns1:int><ns1:string>arg2</ns1:string></ns1:Header2></SOAP-ENV:Header><SOAP-ENV:Body><ns1:echoStringParam>Hello World</ns1:echoStringParam></SOAP-ENV:Body></SOAP-ENV:Envelope> +<?xml version="1.0" encoding="UTF-8"?> +<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://soapinterop.org/xsd"><SOAP-ENV:Body><ns1:echoStringReturn>Hello World</ns1:echoStringReturn></SOAP-ENV:Body></SOAP-ENV:Envelope> +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 0000000..e90586e --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/round3_groupF_ext.inc @@ -0,0 +1,14 @@ +<?php +class SOAP_Interop_GroupF { + + function echoString($inputString) + { + return $inputString; + } + +} + +$server = new SoapServer(dirname(__FILE__)."/round3_groupF_ext.wsdl"); +$server->setClass("SOAP_Interop_GroupF"); +$server->handle($HTTP_RAW_POST_DATA); +?>
\ 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 0000000..74ec018 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/round3_groupF_ext.wsdl @@ -0,0 +1,72 @@ +<?xml version="1.0" encoding="UTF-8"?> +<definitions name="WSDLInteropTestDocLitService" + targetNamespace="http://soapinterop.org/" + xmlns="http://schemas.xmlsoap.org/wsdl/" + xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" + xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" + xmlns:tns="http://soapinterop.org/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsd1="http://soapinterop.org/xsd" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:ext="http://soapinterop.org/ext"> + <ext:types/> + + <types> + <ext:schema targetNamespace="http://soapinterop.org/xsd"/> + <schema targetNamespace="http://soapinterop.org/xsd" + xmlns="http://www.w3.org/2001/XMLSchema" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> + + <element name="echoStringParam" type="xsd:string"/> + + <element name="echoStringReturn" type="xsd:string"/> + </schema> + </types> + <ext:message name="echoString"/> + <message name="echoString"> + <part element="xsd1:echoStringParam" name="a"/> + </message> + <message name="echoStringResponse"> + <part element="xsd1:echoStringReturn" name="result"/> + </message> + + <ext:portType name="WSDLInteropTestDocLitPortType"/> + + <portType name="WSDLInteropTestDocLitPortType"> + <operation name="echoString"> + <input message="tns:echoString" name="echoString"/> + <output message="tns:echoStringResponse" name="echoStringResponse"/> + </operation> + </portType> + <ext:binding name="WSDLInteropTestDocLitPortBinding"/> + <binding name="WSDLInteropTestDocLitPortBinding" + type="tns:WSDLInteropTestDocLitPortType"> + <ext:binding style ="chunked"/> + <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> + <operation name="echoString"> + <ext:operation style ="chunked"/> + <soap:operation soapAction="http://soapinterop.org/" style="document"/> + <input name="echoString"> + <ext:body use ="direct"/> + <soap:body namespace="http://soapinterop.org/WSDLInteropTestDocLit" + use="literal"/> + </input> + <output name="echoStringResponse"> + <ext:body use ="direct"/> + <soap:body namespace="http://soapinterop.org/WSDLInteropTestDocLit" + use="literal"/> + </output> + </operation> + </binding> + <ext:service name="WSDLInteropTestDocLitService"/> + <service name="WSDLInteropTestDocLitService"> + <ext:port binding="tns:WSDLInteropTestDocLitPortBinding" + name="WSDLInteropTestDocLitPort"/> + <port binding="tns:WSDLInteropTestDocLitPortBinding" + name="WSDLInteropTestDocLitPort"> + <ext:address location=""/> + <soap:address + location="round3_groupF_ext.inc"/> + </port> + </service> +</definitions> 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 0000000..8dfd65e --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/round3_groupF_extreq.wsdl @@ -0,0 +1,73 @@ +<?xml version="1.0" encoding="UTF-8"?> +<definitions name="WSDLInteropTestDocLitService" + targetNamespace="http://soapinterop.org/" + xmlns="http://schemas.xmlsoap.org/wsdl/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" + xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" + xmlns:tns="http://soapinterop.org/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsd1="http://soapinterop.org/xsd" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:ext="http://soapinterop.org/ext"> + <ext:types/> + + <types> + <ext:schema targetNamespace="http://soapinterop.org/xsd"/> + <schema targetNamespace="http://soapinterop.org/xsd" + xmlns="http://www.w3.org/2001/XMLSchema" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> + + <element name="echoStringParam" type="xsd:string"/> + + <element name="echoStringReturn" type="xsd:string"/> + </schema> + </types> + <ext:message name="echoString"/> + <message name="echoString"> + <part element="xsd1:echoStringParam" name="a"/> + </message> + <message name="echoStringResponse"> + <part element="xsd1:echoStringReturn" name="result"/> + </message> + + <ext:portType name="WSDLInteropTestDocLitPortType"/> + + <portType name="WSDLInteropTestDocLitPortType"> + <operation name="echoString"> + <input message="tns:echoString" name="echoString"/> + <output message="tns:echoStringResponse" name="echoStringResponse"/> + </operation> + </portType> + <ext:binding name="WSDLInteropTestDocLitPortBinding"/> + <binding name="WSDLInteropTestDocLitPortBinding" + type="tns:WSDLInteropTestDocLitPortType"> + <ext:binding style ="chunked" wsdl:required="true"/> + <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> + <operation name="echoString"> + <ext:operation style ="chunked"/> + <soap:operation soapAction="http://soapinterop.org/" style="document"/> + <input name="echoString"> + <ext:body use ="direct"/> + <soap:body namespace="http://soapinterop.org/WSDLInteropTestDocLit" + use="literal"/> + </input> + <output name="echoStringResponse"> + <ext:body use ="direct"/> + <soap:body namespace="http://soapinterop.org/WSDLInteropTestDocLit" + use="literal"/> + </output> + </operation> + </binding> + <ext:service name="WSDLInteropTestDocLitService"/> + <service name="WSDLInteropTestDocLitService"> + <ext:port binding="tns:WSDLInteropTestDocLitPortBinding" + name="WSDLInteropTestDocLitPort"/> + <port binding="tns:WSDLInteropTestDocLitPortBinding" + name="WSDLInteropTestDocLitPort"> + <ext:address location=""/> + <soap:address + location="round3_groupF_extreq.inc"/> + </port> + </service> +</definitions> 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 0000000..b7e67b0 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/round3_groupF_headers.inc @@ -0,0 +1,22 @@ +<?php +class SOAP_Interop_GroupF { + + function Header1($input) + { + } + + function Header2($input) + { + } + + function echoString($inputString) + { + return $inputString; + } + +} + +$server = new SoapServer(dirname(__FILE__)."/round3_groupF_ext.wsdl"); +$server->setClass("SOAP_Interop_GroupF"); +$server->handle($HTTP_RAW_POST_DATA); +?>
\ 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 0000000..d03fc32 --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/round3_groupF_headers.wsdl @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="utf-8"?> +<definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:s="http://www.w3.org/2001/XMLSchema" + xmlns:tns="http://soapinterop.org/" + xmlns:types="http://soapinterop.org/xsd" + targetNamespace="http://soapinterop.org/" + xmlns="http://schemas.xmlsoap.org/wsdl/"> + <types> + <s:schema elementFormDefault="qualified" targetNamespace="http://soapinterop.org/xsd"> + <s:element name="echoStringParam" type="s:string"/> + + <s:element name="echoStringReturn" type="s:string"/> + + <s:element name="Header1" type="types:Header1" /> + <s:complexType name="Header1"> + <s:sequence> + <s:element name="string" type="s:string" /> + <s:element name="int" type="s:int" /> + </s:sequence> + <s:anyAttribute /> + </s:complexType> + <s:element name="Header2" type="types:Header2" /> + <s:complexType name="Header2"> + <s:sequence> + <s:element name="int" type="s:int" /> + <s:element name="string" type="s:string" /> + </s:sequence> + <s:anyAttribute /> + </s:complexType> + </s:schema> + </types> + <message name="echoString"> + <part element="types:echoStringParam" name="a"/> + </message> + <message name="echoStringResponse"> + <part element="types:echoStringReturn" name="result"/> + </message> + <message name="Header1"> + <part name="Header1" element="types:Header1" /> + </message> + <message name="Header2"> + <part name="Header2" element="types:Header2" /> + </message> + <portType name="RetHeaderPortType"> + <operation name="echoString"> + <input message="tns:echoString" /> + <output message="tns:echoStringResponse" /> + </operation> + </portType> + <binding name = "RetHeaderBinding" type="tns:RetHeaderPortType"> + <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> + <operation name="echoString"> + <soap:operation soapAction="http://soapinterop.org/" style="document" /> + <input> + <soap:body use="literal" /> + <soap:header message="tns:Header1" part="Header1" use="literal"/> + <soap:header message="tns:Header2" part="Header2" use="literal"/> + </input> + <output> + <soap:body use="literal" /> + </output> + </operation> + </binding> + <service name="RetHeaderService"> + <port name="RetHeaderPort" binding="tns:RetHeaderBinding"> + <soap:address location="round3_groupF_headers.inc"/> + </port> + </service> +</definitions> 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 0000000..fa8574e --- /dev/null +++ b/ext/soap/tests/interop/Round3/GroupF/skipif.inc @@ -0,0 +1,3 @@ +<?php + if (!extension_loaded('soap')) die('skip soap extension not available'); +?> |