SOAP
PHP Manual

SoapClient->__setLocation

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

SoapClient->__setLocation Sets the location option.

Beschreibung

SoapClient
string __setLocation ([ string $location ] )

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

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

Parameter-Liste

location

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

Rückgabewerte

The old value of the location option.

Beispiele

Beispiel #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;

?>

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

http://www.somethirdparty.com


SOAP
PHP Manual