PHP Class VCR\Util\SoapClient

Inheritance: extends SoapClient
Afficher le fichier Open project: php-vcr/php-vcr Class Usage Examples

Protected Properties

Свойство Type Description
$options
$request string
$response string
$soapHook SOAP library hook used to intercept SOAP requests.

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
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.

Method Details

__construct() public méthode

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

__doRequest() public méthode

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.
Résultat string The XML SOAP response.

__getLastRequest() public méthode

public __getLastRequest ( )

__getLastResponse() public méthode

public __getLastResponse ( )

getLibraryHook() protected méthode

If no library hook is set, a new one is created.
protected getLibraryHook ( ) : SoapHook
Résultat VCR\LibraryHooks\SoapHook SOAP library hook.

realDoRequest() protected méthode

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.
Résultat string The XML SOAP response.

setLibraryHook() public méthode

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.

Property Details

$options protected_oe property

protected $options

$request protected_oe property

protected string $request
Résultat string

$response protected_oe property

protected string $response
Résultat string

$soapHook protected_oe property

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