Imports a
Reinsurance Program into Touchstone®.
The Reinsurance Program file must use an .rpx
or .rpf
file extension and must be accessible from the application services machine.
Public Function ImportReinsuranceProgram( _
ByVal As ImportReinsuranceProgramRequest _
) As ImportReinsuranceProgramResponse
Dim instance As ReinsuranceManagementServiceClient
Dim request As ImportReinsuranceProgramRequest
Dim value As ImportReinsuranceProgramResponse
value = instance.ImportReinsuranceProgram(request)
public ImportReinsuranceProgramResponse ImportReinsuranceProgram(
ImportReinsuranceProgramRequest
)
Parameters
- request
- Contains an ImportReinsuranceProgramRequest that identifies the File Path, Program Name, and Project SID associated with the Reinsurance Program that you want to import, along with the associated Business Unit SID and SQL Instance SID.
Return Value
A ImportReinsuranceProgramResponse containing the Reinsurance Program SID that uniquely identifies the Reinsurance Program that you have imported.
The following example shows how to import a Reinsurance Program using the
ImportReinsuranceProgram()
method:
using System;
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.Api;
using AIR.Services.Reinsurance.Data;
class SnippetImportReinsuranceProgramRequest
{
private static void ImportReinsuranceProgram(int businessUnitSid, int sqlInstanceSid, int projectSid, string filePath, string programName)
{
ReinsuranceManagementServiceClient client = new ReinsuranceManagementServiceClient();
ImportReinsuranceProgramRequest request = new ImportReinsuranceProgramRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.ProjectSid = projectSid;
request.FilePath = filePath;
request.ProgramName = programName;
ImportReinsuranceProgramResponse response = client.ImportReinsuranceProgram(request);
if (response.Status.Code == StatusCode.Success)
{
Console.WriteLine("Successfully imported the Reinsurance Program.");
}
}
}
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