Annotation of embedaddon/php/ext/soap/tests/interop/Round2/Base/r2_base_014p.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SOAP Interop Round2 base 014 (php/direct): echoStruct
3: --SKIPIF--
4: <?php require_once('skipif.inc'); ?>
5: --INI--
6: precision=14
7: --FILE--
8: <?php
9: class SOAPStruct {
10: function SOAPStruct($s, $i, $f) {
11: $this->varString = $s;
12: $this->varInt = $i;
13: $this->varFloat = $f;
14: }
15: }
16:
17: $client = new SoapClient(NULL,array("location"=>"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0));
18: $client->__soapCall("echoStruct", array(new SOAPStruct('arg',34,325.325)), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/"));
19: echo $client->__getlastrequest();
20: $HTTP_RAW_POST_DATA = $client->__getlastrequest();
21: include("round2_base.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/" 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/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:echoStruct><param0 xsi:type="SOAP-ENC:Struct"><varString xsi:type="xsd:string">arg</varString><varInt xsi:type="xsd:int">34</varInt><varFloat xsi:type="xsd:float">325.325</varFloat></param0></ns1:echoStruct></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/" 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:echoStructResponse><outputStruct xsi:type="ns2:SOAPStruct"><varString xsi:type="xsd:string">arg</varString><varInt xsi:type="xsd:int">34</varInt><varFloat xsi:type="xsd:float">325.325</varFloat></outputStruct></ns1:echoStructResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
29: ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>