SoapClient
class SoapClient (View source)
The SoapClient class provides a client for SOAP 1.1, SOAP 1.2 servers. It can be used in WSDL or non-WSDL mode.
Methods
SoapClient constructor
SoapClient constructor
No description
Calls a SOAP function
Returns last SOAP request
Returns last SOAP response
Returns the SOAP headers from the last request
Returns the SOAP headers from the last response
Returns list of available SOAP functions
Returns a list of SOAP types
Returns a list of all cookies
Performs a SOAP request
The __setCookie purpose
Sets the location of the Web service to use
Sets SOAP headers for subsequent calls
Details
SoapClient(string|null $wsdl, array $options = null)
SoapClient constructor
__construct(string|null $wsdl, array $options = [])
SoapClient constructor
mixed
__call(string $name, array $args)
No description
mixed
__soapCall(string $name, array $args, array $options = null, mixed $inputHeaders = null, array $outputHeaders = null)
Calls a SOAP function
string|null
__getLastRequest()
Returns last SOAP request
string|null
__getLastResponse()
Returns last SOAP response
string|null
__getLastRequestHeaders()
Returns the SOAP headers from the last request
string|null
__getLastResponseHeaders()
Returns the SOAP headers from the last response
array|null
__getFunctions()
Returns list of available SOAP functions
array|null
__getTypes()
Returns a list of SOAP types
array
__getCookies()
Returns a list of all cookies
string|null
__doRequest(string $request, string $location, string $action, int $version, bool|int $oneWay = false)
Performs a SOAP request
void
__setCookie(string $name, string $value)
The __setCookie purpose
string|null
__setLocation(string $location = null)
Sets the location of the Web service to use
bool
__setSoapHeaders(mixed $headers = null)
Sets SOAP headers for subsequent calls