downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SoapClient::__setSoapHeaders> <SoapClient::__setCookie
[edit] Last updated: Fri, 25 May 2012

view this page in

SoapClient::__setLocation

(PHP 5 >= 5.0.1)

SoapClient::__setLocationConfigure l'URL du service Web à utiliser

Description

public string SoapClient::__setLocation ([ string $new_location ] )

Configure l'URL cible, à qui seront envoyés les requêtes SOAP. Ce revient à spécifier l'option location lors de la construction du client SoapClient.

Note:

Cette méthode est optionnelle. SoapClient utilise l'URL indiquée dans le fichier WDSL par défaut.

Liste de paramètres

new_location

La nouvelle URL.

Valeurs de retour

L'ancienne URL.

Exemples

Exemple #1 Exemplea vec SoapClient::__setLocation()

<?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;

?>

L'exemple ci-dessus va afficher quelque chose de similaire à :

http://www.somethirdparty.com

Voir aussi



add a note add a note User Contributed Notes SoapClient::__setLocation
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites