public void ApiRegisterService(Service service)
        {
            _logger.Info("Initial");
            _logger.Info(WindowsIdentity.GetCurrent().Name);
            var path    = WebConfigurationManager.AppSettings["UploadCertPath"];
            var content = File.ReadAllText(path + "\\" + service.Wsdl);

            //zemanje na prviot atribut od wsdl za da se postavi kako kod
            var xdocument1 = XDocument.Load(path + "\\" + service.Wsdl);
            var attrib     = xdocument1.Root.FirstAttribute.Value;

            service.Code = attrib;

            _logger.Info("path i content" + content);
            service.Wsdl = content;


            var metaServiceClient = new MetaServiceClient("BasicHttpBinding_IMetaService");

            _logger.Info("metaServiceClient");
            try
            {
                metaServiceClient.RegisterService(service);
            }
            catch (Exception ex)
            {
                _logger.Error("metaServiceClient error", ex);
                throw new FaultException(ex.Message);
            }
        }