Man Page: soapclient.__setsoapheaders
Operating Environment: php
Section: 3
SOAPCLIENT.__SETSOAPHEADERS(3) 1 SOAPCLIENT.__SETSOAPHEADERS(3) SoapClient::__setSoapHeaders - Sets SOAP headers for subsequent callsSYNOPSISpublic bool SoapClient::__setSoapHeaders ([mixed $soapheaders])DESCRIPTIONDefines headers to be sent along with the SOAP requests. Note Calling this method will replace any previous values.PARAMETERSo $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 VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #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)
| Related Man Pages |
|---|
| is_soap_fault(3) - php |
| headers_sent(3) - php |
| soapsh.pl(1) - suse |
| soapclient.soapclient(3) - php |
| soapclient.__setsoapheaders(3) - php |
| Similar Topics in the Unix Linux Community |
|---|
| Use sed to merge multiple lines |
| Sign Soap Message from client certificate from UNIX |