An array of options. If working in WSDL mode, this parameter is optional.
If working in non-WSDL mode, the locationand
uri options must be set, where location is
the URL to request and uri is the target namespace of the
SOAP service.
The style and use options only work in
non-WSDL mode. In WSDL mode, they come from the WSDL file.
The soap_version option specifies whether to use SOAP
1.1, or SOAP 1.2 client.
For HTTP authentication, the login and
password options can be used to supply credentials.
For making an HTTP connection through
a proxy server, the options proxy_host,
proxy_port, proxy_login
and proxy_password are also available.
For HTTPS client certificate authentication use
local_cert and passphrase options.
The compression option allows to use compression
of HTTP SOAP requests and responses.
The encoding option defines internal character
encoding. This option does not change the encoding of SOAP requests (it is
always utf-8), but converts strings into it.
The classmap option can be used to map some WSDL
types to PHP classes. This option must be an array with WSDL types
as keys and names of PHP classes as values.
Setting the boolean trace option enables use of the
methods
SoapClient->__getLastRequest,
SoapClient->__getLastRequestHeaders,
SoapClient->__getLastResponse and
SoapClient->__getLastResponseHeaders.
The exceptions option is a boolean value defining whether
soap errors throw exceptions of type
SoapFault.
The connection_timeout option defines a timeout in seconds
for the connection to the SOAP service. This option does not define a timeout
for services with slow responses. To limit the time to wait for calls to finish the
default_socket_timeout setting
is available.
The typemap option is an array of type mappings.
Type mapping is an array with keys type_name,
type_ns (namespace URI), from_xml
(callback accepting one string parameter) and to_xml
(callback accepting one object parameter).
The cache_wsdl option is one of
WSDL_CACHE_NONE,
WSDL_CACHE_DISK,
WSDL_CACHE_MEMORY or
WSDL_CACHE_BOTH.
The user_agent option specifies string to use in
User-Agent header.
The stream_context option is a resource
for context.
The features option is a bitmask of
SOAP_SINGLE_ELEMENT_ARRAYS,
SOAP_USE_XSI_ARRAY_TYPE,
SOAP_WAIT_ONE_WAY_CALLS.