Example #1
0
        public static ReglaWS.ReglaWebServiceSoapClient ReglaWebServiceSoapClient()
        {
            BasicHttpBinding binding = new BasicHttpBinding(BasicHttpSecurityMode.Transport);

            binding.MaxBufferSize          = 500000000;
            binding.MaxBufferPoolSize      = 524288;
            binding.MaxReceivedMessageSize = 500000000;
            binding.TextEncoding           = Encoding.UTF8;
            binding.TransferMode           = TransferMode.Buffered;
            EndpointAddress addr = new EndpointAddress("https://www.regla.is/fibs_ws/WebServices2019/ReglaWebService.asmx");

            ReglaWS.ReglaWebServiceSoapClient rws = new ReglaWS.ReglaWebServiceSoapClient(binding, addr);

            return(rws);
        }
Example #2
0
 public static bool Login(string username, string password)
 {
     ReglaWS.ReglaWebServiceSoapClient rws = LoginExampleCode.ReglaWebServiceSoapClient();
     ReglaWS.MethodResult result           = rws.LoginWithComment(username, password, "NTV Prufu Login");
     if (result.Success)
     {
         String newtoken = result.Messages[0];
         LoginToken = newtoken;
         return(true);
     }
     else
     {
         return(false);
     }
 }