Annotation of embedaddon/php/ext/soap/tests/bugs/bug35273.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #35273 (Error in mapping soap - java types)
                      3: --SKIPIF--
                      4: <?php require_once('skipif.inc'); ?>
                      5: --INI--
                      6: soap.wsdl_cache_enabled=0
                      7: --FILE--
                      8: <?php
                      9: class TestSoapClient extends SoapClient {
                     10:   function __doRequest($request, $location, $action, $version, $one_way = 0) {
                     11:        echo $request;
                     12:        exit;
                     13:        }
                     14: }
                     15: 
                     16: ini_set("soap.wsdl_cache_enabled", 0);
                     17: $client = new TestSoapClient(dirname(__FILE__).'/bug32941.wsdl', array("trace" => 1, 'exceptions' => 0));
                     18: $ahoj = $client->echoPerson(array("name"=>"Name","surname"=>"Surname"));
                     19: echo "ok\n";
                     20: ?>
                     21: --EXPECT--
                     22: <?xml version="1.0" encoding="UTF-8"?>
                     23: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://service" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="urn:service.EchoService" xmlns:xsd="http://www.w3.org/2001/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:echoPerson><p xsi:type="ns2:Person"><name xsi:type="SOAP-ENC:string">Name</name><surname xsi:type="SOAP-ENC:string">Surname</surname></p></ns1:echoPerson></SOAP-ENV:Body></SOAP-ENV:Envelope>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>