PHP Класс VCR\Util\SoapClient

Наследование: extends SoapClient
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$options
$request string
$response string
$soapHook SOAP library hook used to intercept SOAP requests.

Открытые методы

Метод Описание
__construct ( $wsdl, $options = [] )
__doRequest ( string $request, string $location, string $action, integer $version, integer $one_way ) : string Performs (and may intercepts) SOAP request over HTTP.
__getLastRequest ( )
__getLastResponse ( )
setLibraryHook ( SoapHook $hook ) Sets the SOAP library hook which is used to intercept SOAP requests.

Защищенные методы

Метод Описание
getLibraryHook ( ) : SoapHook Returns currently used SOAP library hook.
realDoRequest ( string $request, string $location, string $action, integer $version, integer $one_way ) : string Performs a real SOAP request over HTTP.

Описание методов

__construct() публичный Метод

public __construct ( $wsdl, $options = [] )

__doRequest() публичный Метод

Requests will be intercepted if the library hook is enabled.
public __doRequest ( string $request, string $location, string $action, integer $version, integer $one_way ) : string
$request string The XML SOAP request.
$location string The URL to request.
$action string The SOAP action.
$version integer The SOAP version.
$one_way integer If one_way is set to 1, this method returns nothing. Use this where a response is not expected.
Результат string The XML SOAP response.

__getLastRequest() публичный Метод

public __getLastRequest ( )

__getLastResponse() публичный Метод

public __getLastResponse ( )

getLibraryHook() защищенный Метод

If no library hook is set, a new one is created.
protected getLibraryHook ( ) : SoapHook
Результат VCR\LibraryHooks\SoapHook SOAP library hook.

realDoRequest() защищенный Метод

Performs a real SOAP request over HTTP.
protected realDoRequest ( string $request, string $location, string $action, integer $version, integer $one_way ) : string
$request string The XML SOAP request.
$location string The URL to request.
$action string The SOAP action.
$version integer The SOAP version.
$one_way integer If one_way is set to 1, this method returns nothing. Use this where a response is not expected.
Результат string The XML SOAP response.

setLibraryHook() публичный Метод

Sets the SOAP library hook which is used to intercept SOAP requests.
public setLibraryHook ( SoapHook $hook )
$hook VCR\LibraryHooks\SoapHook SOAP library hook to use when intercepting SOAP requests.

Описание свойств

$options защищенное свойство

protected $options

$request защищенное свойство

protected string $request
Результат string

$response защищенное свойство

protected string $response
Результат string

$soapHook защищенное свойство

SOAP library hook used to intercept SOAP requests.
protected $soapHook