static void Main(string[] args) { //https://msdn.microsoft.com/en-us/library/system.net.servicepointmanager.servercertificatevalidationcallback.aspx //необходимо, что бы подавить эксэпшн из-за кривого сертификата на сервере ServicePointManager.ServerCertificateValidationCallback = delegate { return(true); }; var service = new NsiPortsTypeClient(); service.ClientCredentials.UserName.UserName = "******"; service.ClientCredentials.UserName.Password = "******"; var request = new exportNsiListRequest1 { ISRequestHeader = new HeaderType { Date = DateTime.Now, MessageGUID = Guid.NewGuid().ToString() }, exportNsiListRequest = new exportNsiListRequest { version = "10.0.1.2", ListGroup = ListGroup.NSI, ListGroupSpecified = true, Id = CryptoConsts.CONTAINER_ID } }; var result = service.exportNsiList(request); }
public exportNsiListResponse exportNsiList(exportNsiListRequest1 request) { return new exportNsiListResponse() { exportNsiListResult = new exportNsiListResult { Id = "1111111111111111111", }, RequestHeader = header }; }
public Task<exportNsiListResponse> exportNsiListAsync(exportNsiListRequest1 request) { throw new NotImplementedException(); }