PHP 클래스 VCR\Util\SoapClient

상속: extends SoapClient
파일 보기 프로젝트 열기: php-vcr/php-vcr 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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