Annotation of embedaddon/php/ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_002w.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: SOAP Interop Round3 GroupE List 002 (php/wsdl): echoLinkedList
! 3: --SKIPIF--
! 4: <?php require_once('skipif.inc'); ?>
! 5: --INI--
! 6: soap.wsdl_cache_enabled=0
! 7: --FILE--
! 8: <?php
! 9: class SOAPList {
! 10: function SOAPList($s, $i, $c) {
! 11: $this->varString = $s;
! 12: $this->varInt = $i;
! 13: $this->child = $c;
! 14: }
! 15: }
! 16: $struct = new SOAPList('arg1',1, new SOAPList('arg2',2,NULL));
! 17: $client = new SoapClient(dirname(__FILE__)."/round3_groupE_list.wsdl",array("trace"=>1,"exceptions"=>0));
! 18: $client->echoLinkedList($struct);
! 19: echo $client->__getlastrequest();
! 20: $HTTP_RAW_POST_DATA = $client->__getlastrequest();
! 21: include("round3_groupE_list.inc");
! 22: echo "ok\n";
! 23: ?>
! 24: --EXPECT--
! 25: <?xml version="1.0" encoding="UTF-8"?>
! 26: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://soapinterop.org/WSDLInteropTestRpcEnc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://soapinterop.org/xsd" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:echoLinkedList><param0 xsi:type="ns2:List"><varInt xsi:type="xsd:int">1</varInt><varString xsi:type="xsd:string">arg1</varString><child xsi:type="ns2:List"><varInt xsi:type="xsd:int">2</varInt><varString xsi:type="xsd:string">arg2</varString><child xsi:nil="true" xsi:type="ns2:List"/></child></param0></ns1:echoLinkedList></SOAP-ENV:Body></SOAP-ENV:Envelope>
! 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/WSDLInteropTestRpcEnc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://soapinterop.org/xsd" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:echoLinkedListResponse><return xsi:type="ns2:List"><varInt xsi:type="xsd:int">1</varInt><varString xsi:type="xsd:string">arg1</varString><child xsi:type="ns2:List"><varInt xsi:type="xsd:int">2</varInt><varString xsi:type="xsd:string">arg2</varString><child xsi:nil="true" xsi:type="ns2:List"/></child></return></ns1:echoLinkedListResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
! 29: object(stdClass)#6 (3) {
! 30: ["varInt"]=>
! 31: int(1)
! 32: ["varString"]=>
! 33: string(4) "arg1"
! 34: ["child"]=>
! 35: object(stdClass)#7 (3) {
! 36: ["varInt"]=>
! 37: int(2)
! 38: ["varString"]=>
! 39: string(4) "arg2"
! 40: ["child"]=>
! 41: NULL
! 42: }
! 43: }
! 44: ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>