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

1.1       misho       1: --TEST--
                      2: Bug #42086 (SoapServer return Procedure '' not present for WSIBasic compliant wsdl)
                      3: --SKIPIF--
                      4: <?php require_once('skipif.inc'); ?>
                      5: --INI--
                      6: soap.wsdl_cache_enabled=0
                      7: --FILE--
                      8: <?php
                      9: $request = <<<EOF
                     10: <?xml version="1.0" encoding="UTF-8"?>
                     11: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><firstFunctionWithoutParam/></SOAP-ENV:Body></SOAP-ENV:Envelope>
                     12: EOF;
                     13: 
                     14: class firstFunctionWithoutParamResponse {
                     15:        public $param;
                     16: }
                     17: 
                     18: function firstFunctionWithoutParam() {
                     19:        $ret = new firstFunctionWithoutParamResponse();
                     20:        $ret->param     =       "firstFunctionWithoutParam";
                     21:        return $ret;
                     22: }
                     23:        
                     24: $server = new SoapServer(dirname(__FILE__).'/bug42086.wsdl',
                     25:        array('features'=>SOAP_SINGLE_ELEMENT_ARRAYS));
                     26: $server->addFunction('firstFunctionWithoutParam');
                     27: $server->handle($request);
                     28: ?>
                     29: --EXPECT--
                     30: <?xml version="1.0" encoding="UTF-8"?>
                     31: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><firstFunctionWithoutParamReturn><param>firstFunctionWithoutParam</param></firstFunctionWithoutParamReturn></SOAP-ENV:Body></SOAP-ENV:Envelope>

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