1--TEST-- 2Bug #42086 (SoapServer return Procedure '' not present for WSIBasic compliant wsdl) 3--EXTENSIONS-- 4soap 5--INI-- 6soap.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> 12EOF; 13 14class firstFunctionWithoutParamResponse { 15 public $param; 16} 17 18function firstFunctionWithoutParam() { 19 $ret = new firstFunctionWithoutParamResponse(); 20 $ret->param = "firstFunctionWithoutParam"; 21 return $ret; 22} 23 24$server = new SoapServer(__DIR__.'/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> 32