SOAP SoapClient 클래스
(PHP 5, PHP 7, PHP 8)
소개
SoapClient 클래스는 » SOAP 1.1, » SOAP 1.2 서버용 클라이언트를 제공합니다. WSDL 또는 비 WSDL 모드에서 사용할 수 있습니다.
클래스 개요
class SoapClient {
/* Properties */
private ?string $uri = null;
private ?int $style = null;
private ?int $use = null;
private ?string $location = null;
private bool $trace = false;
private ?int $compression = null;
private ?resource $sdl = null;
private ?resource $typemap = null;
private ?resource $httpsocket = null;
private ?resource $httpurl = null;
private ?string $_login = null;
private ?string $_password = null;
private bool $_use_digest = false;
private ?string $_digest = null;
private ?string $_proxy_host = null;
private ?int $_proxy_port = null;
private ?string $_proxy_login = null;
private ?string $_proxy_password = null;
private bool $_exceptions = true;
private ?string $_encoding = null;
private ?array $_classmap = null;
private ?int $_features = null;
private int $_connection_timeout;
private ?resource $_stream_context = null;
private ?string $_user_agent = null;
private bool $_keep_alive = true;
private ?int $_ssl_method = null;
private int $_soap_version;
private ?int $_use_proxy = null;
private array $_cookies = [];
private ?array $__default_headers = null;
private ?SoapFault $__soap_fault = null;
private ?string $__last_request = null;
private ?string $__last_response = null;
private ?string $__last_request_headers = null;
private ?string $__last_response_headers = null;
/* Methods */
public __construct(?string $wsdl, array $options = [])
public __call(string $name, array $args): mixed
public __doRequest(
string $request,
string $location,
string $action,
int $version,
bool $oneWay = false
): ?string
public __getCookies(): array
public __getFunctions(): ?array
public __getLastRequest(): ?string
public __getLastRequestHeaders(): ?string
public __getLastResponse(): ?string
public __getLastResponseHeaders(): ?string
public __getTypes(): ?array
public __setCookie(string $name, ?string $value = null): void
public __setLocation(?string $location = null): ?string
public __setSoapHeaders(SoapHeader|array|null $headers = null): bool
public __soapCall(
string $name,
array $args,
?array $options = null,
SoapHeader|array|null $inputHeaders = null,
array &$outputHeaders = null
): mixed
}
Properties
- __default_headers
- __last_request
- __last_request_headers
- __last_response
- __last_response_headers
- __soap_fault
- _classmap
- _connection_timeout
- _digest
- _encoding
- _exceptions
- _features
- _keep_alive
- _login
- _password
- _proxy_host
- _proxy_login
- _proxy_password
- _proxy_port
- _soap_version
- _ssl_method
- _stream_context
- _use_digest
- _use_proxy
- _user_agent
- compression
- httpsocket
- httpurl
- location
- sdl
- style
- trace
- typemap
- uri
- use
목차
- SoapClient::__call — SOAP 함수 호출(더 이상 사용되지 않음)
- SoapClient::__construct — SoapClient 생성자
- SoapClient::__doRequest — SOAP 요청을 수행합니다.
- SoapClient::__getCookies — 키 목록 가져오기
- SoapClient::__getFunctions — 사용 가능한 SOAP 함수 목록을 반환합니다.
- SoapClient::__getLastRequest — 마지막 SOAP 요청을 반환합니다.
- SoapClient::__getLastRequestHeaders — 마지막 요청에서 SOAP 헤더를 반환합니다.
- SoapClient::__getLastResponse — 마지막 SOAP 응답을 반환합니다.
- SoapClient::__getLastResponseHeaders — 마지막 응답에서 SOAP 헤더를 반환합니다.
- SoapClient::__getTypes — SOAP 유형 목록을 반환합니다.
- SoapClient::__setCookie — SOAP 요청에 대한 쿠키를 정의합니다.
- SoapClient::__setLocation — 사용할 웹 서비스의 위치를 설정합니다.
- SoapClient::__setSoapHeaders — 후속 호출에 대한 SOAP 헤더 설정
- SoapClient::__soapCall — SOAP 함수를 호출합니다.