php8.5
Home/ Manual/ reference / soap/ The SoapClient class

The SoapClient class

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

Intro

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

class SoapClient { }

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

An array of type mappings used for custom XML-to-PHP type conversions, or null if no type mappings are configured. As of PHP 8.4.0, this property is of type array; previously it was of type resource. Code using is_resource() to check this property must be updated accordingly.

uri
use

Soapclient

In this section

Source: reference/soap/soapclient.xml · from the official PHP manual (php/doc-en)