Annotation of embedaddon/php/ext/soap/tests/interop/Round2/GroupB/r2_groupB_005s.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SOAP Interop Round2 groupB 005 (soap/direct): echoNestedArray
3: --SKIPIF--
4: <?php require_once('skipif.inc'); ?>
5: --INI--
6: precision=14
7: --FILE--
8: <?php
9: $param = new SoapParam(new SoapVar(array(
10: new SoapVar("arg", XSD_STRING, null, null, "varString"),
11: new SoapVar(34, XSD_INT, null, null, "varInt"),
12: new SoapVar(325.325, XSD_FLOAT, null, null, "varFloat"),
13: new SoapVar(array(
14: new SoapVar("red", XSD_STRING),
15: new SoapVar("blue", XSD_STRING),
16: new SoapVar("green", XSD_STRING),
17: ), SOAP_ENC_ARRAY, "ArrayOfString", "http://soapinterop.org/xsd", 'varArray')
18: ), SOAP_ENC_OBJECT, "SOAPArrayStruct", "http://soapinterop.org/xsd"), "inputStruct");
19: $client = new SoapClient(NULL,array("location"=>"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0));
20: $client->__soapCall("echoNestedArray", array($param), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/"));
21: echo $client->__getlastrequest();
22: $HTTP_RAW_POST_DATA = $client->__getlastrequest();
23: include("round2_groupB.inc");
24: echo "ok\n";
25: ?>
26: --EXPECT--
27: <?xml version="1.0" encoding="UTF-8"?>
28: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://soapinterop.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://soapinterop.org/xsd" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:echoNestedArray><inputStruct xsi:type="ns2:SOAPArrayStruct"><varString xsi:type="xsd:string">arg</varString><varInt xsi:type="xsd:int">34</varInt><varFloat xsi:type="xsd:float">325.325</varFloat><varArray SOAP-ENC:arrayType="xsd:string[3]" xsi:type="ns2:ArrayOfString"><item xsi:type="xsd:string">red</item><item xsi:type="xsd:string">blue</item><item xsi:type="xsd:string">green</item></varArray></inputStruct></ns1:echoNestedArray></SOAP-ENV:Body></SOAP-ENV:Envelope>
29: <?xml version="1.0" encoding="UTF-8"?>
30: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://soapinterop.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://soapinterop.org/xsd" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:echoNestedArrayResponse><return xsi:type="ns2:SOAPArrayStruct"><varString xsi:type="xsd:string">arg</varString><varInt xsi:type="xsd:int">34</varInt><varFloat xsi:type="xsd:float">325.325</varFloat><varArray SOAP-ENC:arrayType="xsd:string[3]" xsi:type="ns2:ArrayOfstring"><item xsi:type="xsd:string">red</item><item xsi:type="xsd:string">blue</item><item xsi:type="xsd:string">green</item></varArray></return></ns1:echoNestedArrayResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
31: ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>