Submits a request to import one or more CATRADER companies.
From the CATRADER application, you can export an XML file that includes all the data associated with one or more CATRADER companies, and then import the XML file into Touchstone Re. Touchstone Re creates one or more new companies from the data in the XML file.
When submitting the request, you specify the path to the XML file that contains the company data to import.
Syntax
Public Function SubmitImportCATRADERCompany( _
ByVal As SubmitImportCATRADERCompanyRequest _
) As SubmitImportCATRADERCompanyResponse
Dim instance As ReinsuranceDataImportServiceClient
Dim request As SubmitImportCATRADERCompanyRequest
Dim value As SubmitImportCATRADERCompanyResponse
value = instance.SubmitImportCATRADERCompany(request)
public SubmitImportCATRADERCompanyResponse SubmitImportCATRADERCompany(
SubmitImportCATRADERCompanyRequest
)
Parameters
- request
- Contains a SubmitImportCATRADERCompanyRequest that specifies the Business Unit SID and SQL Instance SID associated with the company to import, as well as the ImportOptions object that enables you to configure the import job.
Return Value
A SubmitImportCATRADERCompanyResponse 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 one or more CATRADER companies using the
SubmitImportCATRADERCompany()
method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.DataImport.Api;
using AIR.Services.Reinsurance.DataImport.Data;
using System;
class SnippetSubmitImportCATRADERCompany
{
private static void SubmitImportCATRADERCompany(int businessUnitSid, int sqlInstanceSid, string filePath)
{
ReinsuranceDataImportServiceClient client = new ReinsuranceDataImportServiceClient();
SubmitImportCATRADERCompanyRequest request = new SubmitImportCATRADERCompanyRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.ImportOptions = new ImportOptionsCATRADERCompany()
{
FilePath = filePath,
};
SubmitImportCATRADERCompanyResponse response = client.SubmitImportCATRADERCompany(request);
if (response.Status.Code == StatusCode.Success)
{
Console.WriteLine("Import submitted with Acitivity 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