AdsUser::GetServiceSoapClient PHP Метод

GetServiceSoapClient() публичный Метод

Gets the service by its service name.
public GetServiceSoapClient ( string $serviceName, SoapClientFactory $serviceFactory ) : SoapClient
$serviceName string the service name
$serviceFactory SoapClientFactory the service factory
Результат SoapClient the instantiated service
    public function GetServiceSoapClient($serviceName, SoapClientFactory $serviceFactory)
    {
        return $serviceFactory->GenerateSoapClient($serviceName);
    }

Usage Example

Пример #1
0
 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);
 }
All Usage Examples Of AdsUser::GetServiceSoapClient