SoapServer::handle() has to be compatible with \SoapServer
This commit is contained in:
parent
5fbcfb3e22
commit
bd1fbf9cfc
|
@ -22,6 +22,7 @@ use BeSimple\SoapCommon\Storage\RequestHandlerAttachmentsStorage;
|
||||||
use BeSimple\SoapServer\SoapOptions\SoapServerOptions;
|
use BeSimple\SoapServer\SoapOptions\SoapServerOptions;
|
||||||
use BeSimple\SoapCommon\Converter\MtomTypeConverter;
|
use BeSimple\SoapCommon\Converter\MtomTypeConverter;
|
||||||
use BeSimple\SoapCommon\Converter\SwaTypeConverter;
|
use BeSimple\SoapCommon\Converter\SwaTypeConverter;
|
||||||
|
use Exception;
|
||||||
use InvalidArgumentException;
|
use InvalidArgumentException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -62,16 +63,14 @@ class SoapServer extends \SoapServer
|
||||||
/**
|
/**
|
||||||
* Custom handle method to be able to modify the SOAP messages.
|
* Custom handle method to be able to modify the SOAP messages.
|
||||||
*
|
*
|
||||||
* @deprecated Please, use createRequest + handleRequest methods
|
* @deprecated
|
||||||
* @param string $requestUrl
|
* @param string $request Request string
|
||||||
* @param string $soapAction
|
* @return string
|
||||||
* @param string $requestContent = null
|
|
||||||
* @return string|false
|
|
||||||
*/
|
*/
|
||||||
public function handle($requestUrl, $soapAction, $requestContent = null)
|
public function handle($request = null)
|
||||||
{
|
{
|
||||||
return $this->handleRequest(
|
throw new Exception(
|
||||||
$this->createRequest($requestUrl, $soapAction, $requestContent)
|
'The handle method is now deprecated, because it accesses $_SERVER, $_POST. Use handleRequest instead'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue