var baseUrl = new Uri("https://nibrs.ariesportal.com/NIBRS-Upload/");
var credentials = new BasicAuthenticationCredentials()
{
UserName = "YourORI",
Password = "YouPassword"
};
var uploadContainer = new UploadContainer();
uploadContainer.Files = new List<NibrsXmlUpload>();
var pathsToXmlFiles = new List<string>();
foreach (string filePath in pathsToXmlFiles)
{
var fileToUpload = new NibrsXmlUpload();
var fileInfo = new FileInfo(filePath);
fileToUpload.FileName = fileInfo.Name;
fileToUpload.XML = File.ReadAllText(filePath);
uploadContainer.Files.Add(fileToUpload);
}
var client = new NibrsWebServiceClient(baseUrl, credentials);
List<ImportResult> response = client.XMLUpload.UploadFile(uploadContainer).ToList();
After downloading, extract the contents of the zip file and add a reference to the enclosed DLL.