SoapClient->__setSoapHeaders> <SoapClient->__setCookie
Last updated: Mon, 28 Dec 2009

SoapClient->__setLocation

(No version information available, might be only in CVS)

SoapClient->__setLocation Sets the location option.

Descrição

SoapClient
string __setLocation ([ string $location ] )

Sets the endpoint URL that will be touched by following SOAP requests.

Nota: Calling this method is optional. The SoapClient uses the endpoint from the WSDL file by default.

Parâmetros

location

The URL to be set. If not specified, the existing value of the location option will be unset.

Valor Retornado

The old value of the location option.

Exemplos

Exemplo #1 Set A Location

<?php
$client 
= new SoapClient('http://example.com/webservice.php?wsdl');

$client->__setLocation('http://www.somethirdparty.com');

$old_location $client->__setLocation(); // unsets the location option

echo $old_location;

?>

O exemplo acima irá imprimir:

http://www.somethirdparty.com



User Contributed Notes
SoapClient->__setLocation
There are no user contributed notes for this page.

SoapClient->__setSoapHeaders> <SoapClient->__setCookie
Last updated: Mon, 28 Dec 2009