The SoapClient class

(PHP 5, PHP 7, PHP 8)

Introduction

The SoapClient class provides a client for » SOAP 1.1, » SOAP 1.2 servers. It can be used in WSDL or non-WSDL mode.

Class synopsis

classSoapClient {
private?string$uri = null;
private?int$style = null;
private?int$use = null;
private?string$location = null;
privatebool$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;
privatebool$_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;
privatebool$_exceptions = true;
private?string$_encoding = null;
private?array$_classmap = null;
private?int$_features = null;
private?resource$_stream_context = null;
private?string$_user_agent = null;
privatebool$_keep_alive = true;
private?int$_ssl_method = null;
private?int$_use_proxy = null;
privatearray$_cookies = [];
private?array$__default_headers = null;
private?SoapFault$__soap_fault = null;
private?string$__last_request = null;
private?string$__last_response = null;
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__setCookie(string$name, ?string$value = null): void
public__setLocation(?string$location = null): ?string
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

_cookies

_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

Table of Contents

To Top