diff --git a/reference/soap/functions/soap-soapclient-setlocation.xml b/reference/soap/functions/soap-soapclient-setlocation.xml new file mode 100644 index 0000000000..4266e3f8dd --- /dev/null +++ b/reference/soap/functions/soap-soapclient-setlocation.xml @@ -0,0 +1,101 @@ + + + + + SoapClient->__setLocation + + Sets the location option. + + + + &reftitle.description; + + SoapClient + + string + __setLocation + stringlocation + + + + 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. + + + + + &reftitle.parameters; + + + + location + + + The URL to be set. If not specified, the existing value of the location + option will be unset. + + + + + + + + &reftitle.returnvalues; + + The old value of the location option. + + + + &reftitle.examples; + + + Set A Location + +__setLocation('http://www.somethirdparty.com'); + +$old_location = $client->__setLocation(); // unsets the location option + +echo $old_location; + +?> +]]> + + &example.outputs; + + + + + + + + +