Annotation of embedaddon/php/ext/soap/tests/interop/Round2/GroupB/r2_groupB_002s.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: SOAP Interop Round2 groupB 002 (soap/direct): echoSimpleTypesAsStruct
! 3: --SKIPIF--
! 4: <?php require_once('skipif.inc'); ?>
! 5: --INI--
! 6: precision=14
! 7: --FILE--
! 8: <?php
! 9: $client = new SoapClient(NULL,array("location"=>"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0));
! 10: $client->__soapCall("echoSimpleTypesAsStruct", array(
! 11: new SoapParam(new SoapVar("arg",XSD_STRING), "inputString"),
! 12: new SoapParam(new SoapVar(34,XSD_INT), "inputInteger"),
! 13: new SoapParam(new SoapVar(34.345,XSD_FLOAT), "inputFloat")), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/"));
! 14: echo $client->__getlastrequest();
! 15: $HTTP_RAW_POST_DATA = $client->__getlastrequest();
! 16: include("round2_groupB.inc");
! 17: echo "ok\n";
! 18: ?>
! 19: --EXPECT--
! 20: <?xml version="1.0" encoding="UTF-8"?>
! 21: <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:echoSimpleTypesAsStruct><inputString xsi:type="xsd:string">arg</inputString><inputInteger xsi:type="xsd:int">34</inputInteger><inputFloat xsi:type="xsd:float">34.345</inputFloat></ns1:echoSimpleTypesAsStruct></SOAP-ENV:Body></SOAP-ENV:Envelope>
! 22: <?xml version="1.0" encoding="UTF-8"?>
! 23: <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:echoSimpleTypesAsStructResponse><return xsi:type="ns2:SOAPStruct"><varString xsi:type="xsd:string">arg</varString><varInt xsi:type="xsd:int">34</varInt><varFloat xsi:type="xsd:float">34.345</varFloat></return></ns1:echoSimpleTypesAsStructResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
! 24: ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>