public BatchSvc(string Url, string userName, string passWord) { this.Destination = Util.GetEndpoint(Url, "Batch/BatchSvc.asmx"); // Setup WS-Security authentication UsernameToken userToken = new UsernameToken(userName, passWord, PasswordOption.SendPlainText); SoapContext requestContext = this.RequestSoapContext; requestContext.Security.Tokens.Add(userToken); requestContext.Security.Timestamp.TtlInSeconds = 300; Avalara.AvaTax.Services.Proxies.BatchSvcProxy.Profile profile = new Avalara.AvaTax.Services.Proxies.BatchSvcProxy.Profile(); profile.Client = "QATestClient"; // _config.Client; profile.Adapter = ""; profile.Name = ""; profile.Machine = System.Environment.MachineName; this.ProfileValue = profile; }