PHP
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
Last updated: Fri, 30 Jan 2009

view this page in

SoapClient->__setLocation

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

SoapClient->__setLocation Sets the location option.

説明

SoapClient
string __setLocation ([ string $location ] )

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

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

パラメータ

location

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

返り値

The old value of the location option.

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

?>

上の例の出力は以下となります。

http://www.somethirdparty.com



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

SoapClient->__setSoapHeaders> <SoapClient->__setCookie
Last updated: Fri, 30 Jan 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites