Gets the service by its service name.
public GetServiceSoapClient ( string $serviceName, SoapClientFactory $serviceFactory ) : SoapClient | ||
$serviceName | string | the service name |
$serviceFactory | SoapClientFactory | the service factory |
return | SoapClient | the instantiated service |
public function GetService($serviceName, $version = null, $server = null, SoapClientFactory $serviceFactory = null) { $this->ValidateUser(); if ($serviceFactory === null) { if ($version === null) { $version = $this->GetDefaultVersion(); } if ($server === null) { $server = $this->GetDefaultServer(); } $serviceFactory = new DfpSoapClientFactory($this, $version, $server); } return parent::GetServiceSoapClient($serviceName, $serviceFactory); }
/** * Gets the service by its service name and group. * @param $serviceName the service name * @param string $version the version of the service to get. If * <var>null</var>, then the default version will be used * @param string $server the server to make the request to. If * <var>null</var>, then the default server will be used * @param SoapClientFactory $serviceFactory the factory to create the client. * If <var>null</var>, then the built-in SOAP client factory will be used * @param bool $validateOnly if the service should be created in validateOnly * mode * @param bool $partialFailure if the service should be created in * partialFailure mode * @return SoapClient the instantiated service * @throws ServiceException if an error occurred when getting the service */ public function GetService($serviceName, $version = null, $server = null, SoapClientFactory $serviceFactory = null, $validateOnly = null, $partialFailure = null) { $this->ValidateUser(); if ($serviceFactory === null) { if ($version === null) { $version = $this->GetDefaultVersion(); } if ($server === null) { $server = $this->GetDefaultServer(); } $serviceFactory = new AdWordsSoapClientFactory($this, $version, $server, $validateOnly, $partialFailure); } return parent::GetServiceSoapClient($serviceName, $serviceFactory); }
/** * Gets the service by its service name and group. * @param $serviceName the service name * @param string $version the version of the service to get. If * <var>NULL</var>, then the default version will be used * @param string $server the server to make the request to. If * <var>NULL</var>, then the default server will be used * @param SoapClientFactory $serviceFactory the factory to create the client. * If <var>NULL</var>, then the built-in SOAP client factory will be used * @param bool $validateOnly if the service should be created in validateOnly * mode * @param bool $partialFailure if the service should be created in * partialFailure mode * @return SoapClient the instantiated service */ public function GetService($serviceName, $version = NULL, $server = NULL, SoapClientFactory $serviceFactory = NULL, $validateOnly = NULL, $partialFailure = NULL) { $this->ValidateUser(); if (!isset($serviceFactory)) { if (!isset($version)) { $version = $this->GetDefaultVersion(); } if (!isset($server)) { $server = $this->GetDefaultServer(); } $serviceFactory = new YDirectSoapClientFactory($this, $version, $server, $validateOnly, $partialFailure); } return parent::GetServiceSoapClient($serviceName, $serviceFactory); }
/** * Gets the service by its service name. * @param $serviceName the service name * @param string $version the version of the service to get. If * <var>NULL</var>, then the default version will be used * @param string $server the server to make the request to. If * <var>NULL</var>, then the default server will be used * @param SoapClientFactory $serviceFactory the factory to create the client. * If <var>NULL</var>, then the built-in SOAP client factory will be used * @return SoapClient the instantiated service */ public function GetService($serviceName, $version = NULL, $server = NULL, SoapClientFactory $serviceFactory = NULL) { $this->ValidateUser(); if (!isset($serviceFactory)) { if (!isset($version)) { $version = $this->GetDefaultVersion(); } if (!isset($server)) { $server = $this->GetDefaultServer(); } $serviceFactory = new DfpSoapClientFactory($this, $version, $server); } return parent::GetServiceSoapClient($serviceName, $serviceFactory); }
/** * Gets the service by its service name and group. * @param $serviceName the service name * @param string $version the version of the service to get. If * <var>NULL</var>, then the default version will be used * @param string $server the server to make the request to. If * <var>NULL</var>, then the default server will be used * @param SoapClientFactory $serviceFactory the factory to create the client. * If <var>NULL</var>, then the built-in SOAP client factory will be used * @param bool $validateOnly if the service should be created in validateOnly * mode * @param bool $partialFailure if the service should be created in * partialFailure mode * @return SoapClient the instantiated service * @throws ServiceException if an error occurred when getting the service */ public function GetService($serviceName, $version = NULL, $server = NULL, SoapClientFactory $serviceFactory = NULL, $validateOnly = NULL, $partialFailure = NULL) { $this->ValidateUser(); if (!isset($serviceFactory)) { if (!isset($version)) { $version = $this->GetDefaultVersion(); } if (!isset($server)) { $server = $this->GetDefaultServer(); } $serviceFactory = new AdWordsSoapClientFactory($this, $version, $server, $validateOnly, $partialFailure); } DeprecationUtils::CheckUsingClientLoginWithUnsupportedVersion($this, self::FINAL_CLIENT_LOGIN_VERSION, $version); return parent::GetServiceSoapClient($serviceName, $serviceFactory); }