Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

soapclient(3) [php man page]

SOAPCLIENT(3)								 1							     SOAPCLIENT(3)

The SoapClient class

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
SoapClient SoapClient Methods o public mixed SoapClient::__call (string $function_name, string $arguments) o public SoapClient::SoapClient (mixed $wsdl, [array $options]) o public string SoapClient::__doRequest (string $request, string $location, string $action, int $version, [int $one_way]) o public array SoapClient::__getFunctions (void ) o public string SoapClient::__getLastRequest (void ) o public string SoapClient::__getLastRequestHeaders (void ) o public string SoapClient::__getLastResponse (void ) o public string SoapClient::__getLastResponseHeaders (void ) o public array SoapClient::__getTypes (void ) o public void SoapClient::__setCookie (string $name, [string $value]) o public string SoapClient::__setLocation ([string $new_location]) o public bool SoapClient::__setSoapHeaders ([mixed $soapheaders]) o public mixed SoapClient::__soapCall (string $function_name, array $arguments, [array $options], [mixed $input_headers], [array &$output_headers]) o public SoapClient::SoapClient (mixed $wsdl, [array $options]) PHP Documentation Group SOAPCLIENT(3)

Check Out this Related Man Page

SOAPCLIENT.__SETSOAPHEADERS(3)						 1					    SOAPCLIENT.__SETSOAPHEADERS(3)

SoapClient::__setSoapHeaders - Sets SOAP headers for subsequent calls

SYNOPSIS
public bool SoapClient::__setSoapHeaders ([mixed $soapheaders]) DESCRIPTION
Defines headers to be sent along with the SOAP requests. Note Calling this method will replace any previous values. PARAMETERS
o $soapheaders - The headers to be set. It could be SoapHeader object or array of SoapHeader objects. If not specified or set to NULL, the head- ers will be deleted. RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 SoapClient.__setSoapHeaders(3) example <?php $client = new SoapClient(null, array('location' => "http://localhost/soap.php", 'uri' => "http://test-uri/")); $header = new SoapHeader('http://soapinterop.org/echoheader/', 'echoMeStringRequest', 'hello world'); $client->__setSoapHeaders($header); $client->__soapCall("echoVoid", null); ?> Example #2 Set Multiple Headers <?php $client = new SoapClient(null, array('location' => "http://localhost/soap.php", 'uri' => "http://test-uri/")); $headers = array(); $headers[] = new SoapHeader('http://soapinterop.org/echoheader/', 'echoMeStringRequest', 'hello world'); $headers[] = new SoapHeader('http://soapinterop.org/echoheader/', 'echoMeStringRequest', 'hello world again'); $client->__setSoapHeaders($headers); $client->__soapCall("echoVoid", null); ?> PHP Documentation Group SOAPCLIENT.__SETSOAPHEADERS(3)
Man Page