public _ws_HelpDeskDomino.POZYCJALISTY[] listazgl(string phd)
        {
            BasicHttpBinding binding = new BasicHttpBinding();

            binding.Security.Mode = BasicHttpSecurityMode.TransportCredentialOnly;
            //binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Digest;
            //binding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.UserName;
            binding.Security.Mode          = BasicHttpSecurityMode.Transport;
            binding.Name                   = "MyBinding";
            binding.MaxReceivedMessageSize = Int32.MaxValue;

            string uri = V;

            EndpointAddress endpoint = new EndpointAddress(uri);



            //SI_SEND_ORG_DATAClient client = new SI_SEND_ORG_DATAClient(binding, endpoint);



            //binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Basic;
            _ws_HelpDeskDomino.InfZglPortClient client = new _ws_HelpDeskDomino.InfZglPortClient(binding, endpoint);



            client.ClientCredentials.UserName.UserName = "******";
            client.ClientCredentials.UserName.Password = "******";

            //  teraz odpalamy oddzielny space name
            //sss = client.STATUSZGLOSZENIA(nrzgl);


            _ws_HelpDeskDomino.POZYCJALISTY[] lista1;
            using (new OperationContextScope(client.InnerChannel))
            {
                SoapAuthHeader.Create(client.ClientCredentials.UserName.UserName, client.ClientCredentials.UserName.Password);

                //client.Open();


                lstZgl = client.POKAZZGLOSZENIAODP(phd);
                //lstZgl = client.(phd);
                _ws_HelpDeskDomino.POZYCJALISTY[] xxx = client.POKAZZGLOSZENIAODP("Piotr Kaczmarek");
            };



            return(lstZgl);
        }
        public void dodajkomentarz(string nrzgl, string komentarz)
        {
            BasicHttpBinding binding = new BasicHttpBinding();

            binding.Security.Mode = BasicHttpSecurityMode.TransportCredentialOnly;
            //binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Digest;
            //binding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.UserName;
            binding.Security.Mode          = BasicHttpSecurityMode.Transport;
            binding.Name                   = "MyBinding";
            binding.MaxReceivedMessageSize = Int32.MaxValue;

            string uri = V;

            EndpointAddress endpoint = new EndpointAddress(uri);



            //SI_SEND_ORG_DATAClient client = new SI_SEND_ORG_DATAClient(binding, endpoint);



            //binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Basic;
            _ws_HelpDeskDomino.InfZglPortClient client = new _ws_HelpDeskDomino.InfZglPortClient(binding, endpoint);



            client.ClientCredentials.UserName.UserName = "******";
            client.ClientCredentials.UserName.Password = "******";

            //  teraz odpalamy oddzielny space name
            //sss = client.STATUSZGLOSZENIA(nrzgl);



            using (new OperationContextScope(client.InnerChannel))
            {
                SoapAuthHeader.Create(client.ClientCredentials.UserName.UserName, client.ClientCredentials.UserName.Password);

                //client.Open();

                client.DODAJKOMENTARZ(nrzgl, komentarz);
            };
        }
        public _ws_HelpDeskDomino.DANEZGLOSZENIA StatusZgloszenia(string nrzgl)
        {
            BasicHttpBinding binding = new BasicHttpBinding();

            binding.Security.Mode = BasicHttpSecurityMode.TransportCredentialOnly;
            //binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Digest;
            //binding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.UserName;
            binding.Security.Mode          = BasicHttpSecurityMode.Transport;
            binding.Name                   = "MyBinding";
            binding.MaxReceivedMessageSize = Int32.MaxValue;

            string uri = V;

            EndpointAddress endpoint = new EndpointAddress(uri);



            //SI_SEND_ORG_DATAClient client = new SI_SEND_ORG_DATAClient(binding, endpoint);



            //binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Basic;
            _ws_HelpDeskDomino.InfZglPortClient client = new _ws_HelpDeskDomino.InfZglPortClient(binding, endpoint);



            client.ClientCredentials.UserName.UserName = "******";
            client.ClientCredentials.UserName.Password = "******";

            using (new OperationContextScope(client.InnerChannel))
            {
                SoapAuthHeader.Create(client.ClientCredentials.UserName.UserName, client.ClientCredentials.UserName.Password);

                sss = client.STATUSZGLOSZENIA(nrzgl);
            };
            return(sss);
        }