Annotation of embedaddon/php/ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_002w.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: SOAP Interop Round4 GroupH Complex RPC Enc 002 (php/wsdl): echoBaseStructFault
! 3: --SKIPIF--
! 4: <?php require_once('skipif.inc'); ?>
! 5: --INI--
! 6: precision=14
! 7: soap.wsdl_cache_enabled=0
! 8: --FILE--
! 9: <?php
! 10: class BaseStruct {
! 11: function BaseStruct($f, $s) {
! 12: $this->floatMessage = $f;
! 13: $this->shortMessage = $s;
! 14: }
! 15: }
! 16: $struct = new BaseStruct(12.345,12);
! 17: $client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_rpcenc.wsdl",array("trace"=>1,"exceptions"=>0));
! 18: $client->echoBaseStructFault($struct);
! 19: echo $client->__getlastrequest();
! 20: $HTTP_RAW_POST_DATA = $client->__getlastrequest();
! 21: include("round4_groupH_complex_rpcenc.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/wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://soapinterop.org/types" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:echoBaseStructFault><param xsi:type="ns2:BaseStruct"><floatMessage xsi:type="xsd:float">12.345</floatMessage><shortMessage xsi:type="xsd:short">12</shortMessage></param></ns1:echoBaseStructFault></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:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://soapinterop.org/types" xmlns:ns2="http://soapinterop.org/wsdl" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>Fault in response to 'echoBaseStructFault'.</faultstring><detail><ns2:part2 xsi:type="ns1:BaseStruct"><floatMessage xsi:type="xsd:float">12.345</floatMessage><shortMessage xsi:type="xsd:short">12</shortMessage></ns2:part2></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
! 29: ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>