Submits a request to import a UNICEDE/2 file.
A UNICEDE/2 file contains aggregated exposure data, such as sums insured, number of risks, premiums and payroll (for workers’ compensation exposures), by peril and line of business. For more information, go to www.unicede.com. From the Touchstone application, you can generate a UNICEDE/2 file, and then import the file into Touchstone Re. You must associate the the file with a company.
When submitting the request, you must specify the path to the UNICEDE/2 file to import and the Touchstone Re company to associate with the file.
Syntax
Public Function SubmitImportUnicede2( _
ByVal As SubmitImportUnicede2Request _
) As SubmitImportUnicede2Response
Dim instance As ReinsuranceDataImportServiceClient
Dim request As SubmitImportUnicede2Request
Dim value As SubmitImportUnicede2Response
value = instance.SubmitImportUnicede2(request)
public SubmitImportUnicede2Response SubmitImportUnicede2(
SubmitImportUnicede2Request
)
Parameters
- request
- Contains a SubmitImportUnicede2Request that specifies the Business Unit SID and SQL Instance SID to associate with the file, as well as the ImportOptions object that enables you to configure the import job.
Return Value
A SubmitImportUnicede2Response that contains the Activity SID that uniquely identifies the asynchronous web service call that you made to submit the import job.
Example
The following example shows how to import a UNICEDE/2 file using the
SubmitImportUnicede2()
method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.DataImport.Api;
using AIR.Services.Reinsurance.DataImport.Data;
using AIR.Services.Reinsurance.ExposureManagement.Data;
using System;
class SnippetSubmitImportUnicede2
{
private static void SubmitImportUnicede2(int businessUnitSid, int sqlInstanceSid, int companySid, int exposureSetSid, string filePath)
{
ReinsuranceDataImportServiceClient importClient = new ReinsuranceDataImportServiceClient();
SubmitImportUnicede2Request request = new SubmitImportUnicede2Request();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.ImportOptions = new ImportOptionsUnicede2()
{
CompanySid = companySid,
ExposureSetSid = exposureSetSid,
ExposureYear = DateTime.Now.Year - 1,
FilePath = filePath,
Mode = ImportMode.Append
};
SubmitImportUnicede2Response response = importClient.SubmitImportUnicede2(request);
if (response.Status.Code == StatusCode.Success)
{
Console.WriteLine("Submitted with Activity Sid: " + response.ActivitySid);
}
}
}
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also