Web Service: PermitService

Port PermitService

Location:
http://<MRI_Evolution_Site_Path>/Services/Basic/PermitService.svc
Protocol:
SOAP
Transport protocol:
SOAP over HTTP
Operations:
  1. CreatePermitClassDetail
  2. CreatePermitTemplateDetail
  3. CreateWorkPermitDetail
  4. GetPermitClassByDtoDetail
  5. GetPermitClassByIdDetail
  6. GetPermitTemplateByIdDetail
  7. GetWorkPermitByIdDetail
  8. UpdatePermitClassDetail
  9. UpdatePermitTemplateDetail
  10. UpdateWorkPermitDetail

Port type IPermitService

1. CreatePermitClass

Style: document

Operation type: Request-response. The endpoint receives a message, and sends a correlated message.

Input: IPermitService_CreatePermitClass_InputMessage (soap:body, use = literal)

parameters type CreatePermitClass

Parameter Name Required Type Description
sessionId Optional string sessionId parameter (nillable)
impersonateAccountId Optional long impersonateAccountId parameter (nillable)
dto Optional PermitClassDto dto parameter (nillable)
DisplayText Optional string DisplayText parameter (nillable)
FilterQueryId Optional long FilterQueryId parameter
PrimaryKeyId Optional long PrimaryKeyId parameter
PrimaryTableCatalogId Optional long PrimaryTableCatalogId parameter
ValidateOnly Optional boolean ValidateOnly parameter
AllowContractorRequests Optional boolean AllowContractorRequests parameter (nillable)
AlternateReportName Optional string AlternateReportName parameter (nillable)
ConceptReportId Optional int ConceptReportId parameter (nillable)
WP_CLASS_DESC Optional string WP_CLASS_DESC parameter (nillable)
WP_CLASS_FILE Optional string WP_CLASS_FILE parameter (nillable)
WP_CLASS_SEQ Optional int WP_CLASS_SEQ parameter (nillable)

Output: IPermitService_CreatePermitClass_OutputMessage (soap:body, use = literal)

parameters type CreatePermitClassResponse

Parameter Name Required Type Description
CreatePermitClassResult Optional PermitClassDto CreatePermitClassResult parameter (nillable)
DisplayText Optional string DisplayText parameter (nillable)
FilterQueryId Optional long FilterQueryId parameter
PrimaryKeyId Optional long PrimaryKeyId parameter
PrimaryTableCatalogId Optional long PrimaryTableCatalogId parameter
ValidateOnly Optional boolean ValidateOnly parameter
AllowContractorRequests Optional boolean AllowContractorRequests parameter (nillable)
AlternateReportName Optional string AlternateReportName parameter (nillable)
ConceptReportId Optional int ConceptReportId parameter (nillable)
WP_CLASS_DESC Optional string WP_CLASS_DESC parameter (nillable)
WP_CLASS_FILE Optional string WP_CLASS_FILE parameter (nillable)
WP_CLASS_SEQ Optional int WP_CLASS_SEQ parameter (nillable)
Code Examples
C# Example
// Create the service client
using (var client = new PermitServiceClient())
{
    // Create the request parameters
    string sessionId = "your_value_here";
    long impersonateAccountId = 123;
    var dto = new PermitClassDto
    {
        // Set DTO properties here
    };
    
    // Call the service method
    var response = client.CreatePermitClass(sessionId, impersonateAccountId, dto);
    
    // Process the response
    if (response != null)
    {
        // Handle successful response
        Console.WriteLine("Operation completed successfully");
    }
}
SOAP XML Example
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:bas="http://basic.evolutionsvc.mriapi.com/">
   <soap:Header/>
   <soap:Body>
      <bas:CreatePermitClass>
         <bas:sessionId>sample_value</bas:sessionId>
         <bas:impersonateAccountId>123</bas:impersonateAccountId>
         <bas:dto>
            <!-- PermitClassDto properties here -->
         </bas:dto>
      </bas:CreatePermitClass>
   </soap:Body>
</soap:Envelope>
PowerShell Example
# Create web service proxy
$serviceUrl = "http://your-evolution-site.com/Services/Basic/PermitService.svc?wsdl"
$proxy = New-WebServiceProxy -Uri $serviceUrl

# Set parameters
$sessionId = "your_value_here"
$impersonateAccountId = 123
$dto = New-Object PermitClassDto

# Call the service method
$result = $proxy.CreatePermitClass($sessionId, $impersonateAccountId, $dto)

# Process the result
if ($result) {
    Write-Host "Operation completed successfully"
    $result | Format-List
}

2. CreatePermitTemplate

Style: document

Operation type: Request-response. The endpoint receives a message, and sends a correlated message.

Input: IPermitService_CreatePermitTemplate_InputMessage (soap:body, use = literal)

parameters type CreatePermitTemplate

Parameter Name Required Type Description
sessionId Optional string sessionId parameter (nillable)
impersonateAccountId Optional long impersonateAccountId parameter (nillable)
dto Optional PermitTemplateDto dto parameter (nillable)
DisplayText Optional string DisplayText parameter (nillable)
FilterQueryId Optional long FilterQueryId parameter
PrimaryKeyId Optional long PrimaryKeyId parameter
PrimaryTableCatalogId Optional long PrimaryTableCatalogId parameter
ValidateOnly Optional boolean ValidateOnly parameter
Additional Optional string Additional parameter (nillable)
AdditionalID Optional int AdditionalID parameter (nillable)
Applicant Optional string Applicant parameter (nillable)
ApplicantId Optional int ApplicantId parameter (nillable)
Authority1 Optional string Authority1 parameter (nillable)
Authority1ID Optional int Authority1ID parameter (nillable)
Authority2 Optional string Authority2 parameter (nillable)
Authority2ID Optional int Authority2ID parameter (nillable)
Company Optional string Company parameter (nillable)
CompanyId Optional int CompanyId parameter (nillable)
Details Optional string Details parameter (nillable)
EntityPrimaryKeyId Optional long EntityPrimaryKeyId parameter (nillable)
OtherSafetyEquipment Optional string OtherSafetyEquipment parameter (nillable)
PermitClassId Optional int PermitClassId parameter (nillable)
PermitTemplateId Optional int PermitTemplateId parameter (nillable)
Reason Optional string Reason parameter (nillable)
ResourceId Optional int ResourceId parameter (nillable)
SpecificLocation Optional string SpecificLocation parameter (nillable)
TableCatalogId Optional long TableCatalogId parameter (nillable)
Telephone Optional string Telephone parameter (nillable)
Title Optional string Title parameter (nillable)
ToolsAndEquipment Optional string ToolsAndEquipment parameter (nillable)
ValidFromOffset Optional double ValidFromOffset parameter (nillable)
ValidToOffset Optional double ValidToOffset parameter (nillable)

Output: IPermitService_CreatePermitTemplate_OutputMessage (soap:body, use = literal)

parameters type CreatePermitTemplateResponse

Parameter Name Required Type Description
CreatePermitTemplateResult Optional PermitTemplateDto CreatePermitTemplateResult parameter (nillable)
DisplayText Optional string DisplayText parameter (nillable)
FilterQueryId Optional long FilterQueryId parameter
PrimaryKeyId Optional long PrimaryKeyId parameter
PrimaryTableCatalogId Optional long PrimaryTableCatalogId parameter
ValidateOnly Optional boolean ValidateOnly parameter
Additional Optional string Additional parameter (nillable)
AdditionalID Optional int AdditionalID parameter (nillable)
Applicant Optional string Applicant parameter (nillable)
ApplicantId Optional int ApplicantId parameter (nillable)
Authority1 Optional string Authority1 parameter (nillable)
Authority1ID Optional int Authority1ID parameter (nillable)
Authority2 Optional string Authority2 parameter (nillable)
Authority2ID Optional int Authority2ID parameter (nillable)
Company Optional string Company parameter (nillable)
CompanyId Optional int CompanyId parameter (nillable)
Details Optional string Details parameter (nillable)
EntityPrimaryKeyId Optional long EntityPrimaryKeyId parameter (nillable)
OtherSafetyEquipment Optional string OtherSafetyEquipment parameter (nillable)
PermitClassId Optional int PermitClassId parameter (nillable)
PermitTemplateId Optional int PermitTemplateId parameter (nillable)
Reason Optional string Reason parameter (nillable)
ResourceId Optional int ResourceId parameter (nillable)
SpecificLocation Optional string SpecificLocation parameter (nillable)
TableCatalogId Optional long TableCatalogId parameter (nillable)
Telephone Optional string Telephone parameter (nillable)
Title Optional string Title parameter (nillable)
ToolsAndEquipment Optional string ToolsAndEquipment parameter (nillable)
ValidFromOffset Optional double ValidFromOffset parameter (nillable)
ValidToOffset Optional double ValidToOffset parameter (nillable)
Code Examples
C# Example
// Create the service client
using (var client = new PermitServiceClient())
{
    // Create the request parameters
    string sessionId = "your_value_here";
    long impersonateAccountId = 123;
    var dto = new PermitTemplateDto
    {
        // Set DTO properties here
    };
    
    // Call the service method
    var response = client.CreatePermitTemplate(sessionId, impersonateAccountId, dto);
    
    // Process the response
    if (response != null)
    {
        // Handle successful response
        Console.WriteLine("Operation completed successfully");
    }
}
SOAP XML Example
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:bas="http://basic.evolutionsvc.mriapi.com/">
   <soap:Header/>
   <soap:Body>
      <bas:CreatePermitTemplate>
         <bas:sessionId>sample_value</bas:sessionId>
         <bas:impersonateAccountId>123</bas:impersonateAccountId>
         <bas:dto>
            <!-- PermitTemplateDto properties here -->
         </bas:dto>
      </bas:CreatePermitTemplate>
   </soap:Body>
</soap:Envelope>
PowerShell Example
# Create web service proxy
$serviceUrl = "http://your-evolution-site.com/Services/Basic/PermitService.svc?wsdl"
$proxy = New-WebServiceProxy -Uri $serviceUrl

# Set parameters
$sessionId = "your_value_here"
$impersonateAccountId = 123
$dto = New-Object PermitTemplateDto

# Call the service method
$result = $proxy.CreatePermitTemplate($sessionId, $impersonateAccountId, $dto)

# Process the result
if ($result) {
    Write-Host "Operation completed successfully"
    $result | Format-List
}

3. CreateWorkPermit

Style: document

Operation type: Request-response. The endpoint receives a message, and sends a correlated message.

Input: IPermitService_CreateWorkPermit_InputMessage (soap:body, use = literal)

parameters type CreateWorkPermit

Parameter Name Required Type Description
sessionId Optional string sessionId parameter (nillable)
impersonateAccountId Optional long impersonateAccountId parameter (nillable)
dto Optional WorkPermitDto dto parameter (nillable)
DisplayText Optional string DisplayText parameter (nillable)
FilterQueryId Optional long FilterQueryId parameter
PrimaryKeyId Optional long PrimaryKeyId parameter
PrimaryTableCatalogId Optional long PrimaryTableCatalogId parameter
ValidateOnly Optional boolean ValidateOnly parameter
StateName Optional string StateName parameter (nillable)
AcceptResponsibilityId Optional int AcceptResponsibilityId parameter (nillable)
AcceptResponsibilityName Optional string AcceptResponsibilityName parameter (nillable)
AdditionalContactClassId Optional int AdditionalContactClassId parameter (nillable)
AdditionalId Optional int AdditionalId parameter (nillable)
AdditionalName Optional string AdditionalName parameter (nillable)
Authority1ContactClassId Optional int Authority1ContactClassId parameter (nillable)
Authority1Id Optional int Authority1Id parameter (nillable)
Authority1Name Optional string Authority1Name parameter (nillable)
Authority2ContactClassId Optional int Authority2ContactClassId parameter (nillable)
Authority2Id Optional int Authority2Id parameter (nillable)
Authority2Name Optional string Authority2Name parameter (nillable)
BuildingId Optional int BuildingId parameter (nillable)
Company Optional string Company parameter (nillable)
CompanyAccepting Optional int CompanyAccepting parameter (nillable)
CompanyId Optional int CompanyId parameter (nillable)
ContractId Optional int ContractId parameter (nillable)
DateAcceptedUtc Optional dateTime DateAcceptedUtc parameter (nillable)
DateCompletedUtc Optional dateTime DateCompletedUtc parameter (nillable)
DateFromUtc Optional dateTime DateFromUtc parameter (nillable)
DateIssuedUtc Optional dateTime DateIssuedUtc parameter (nillable)
DateToUtc Optional dateTime DateToUtc parameter (nillable)
Details Optional string Details parameter (nillable)
LocationId Optional int LocationId parameter (nillable)
Name Optional string Name parameter (nillable)
NameId Optional int NameId parameter (nillable)
OtherSafetyEquipment Optional string OtherSafetyEquipment parameter (nillable)
PermitClassId Optional int PermitClassId parameter (nillable)
PrecautionDetails Optional string PrecautionDetails parameter (nillable)
Reason Optional string Reason parameter (nillable)
ResourceId Optional int ResourceId parameter (nillable)
ResponsibleContactClassId Optional int ResponsibleContactClassId parameter (nillable)
ResponsiblePersonId Optional int ResponsiblePersonId parameter (nillable)
ResponsiblePersonName Optional string ResponsiblePersonName parameter (nillable)
RiskAssesmentSubmitted Optional boolean RiskAssesmentSubmitted parameter (nillable)
SpecificLocation Optional string SpecificLocation parameter (nillable)
StateId Optional long StateId parameter (nillable)
StatementSubmitted Optional boolean StatementSubmitted parameter (nillable)
TaskId Optional int TaskId parameter (nillable)
Telephone Optional string Telephone parameter (nillable)
Title Optional string Title parameter (nillable)
ToolsAndEquipment Optional string ToolsAndEquipment parameter (nillable)
ValidityPeriod Optional ValidityPeriod WholePeriod, Daily, PerVisit
WP_SEQ Optional int WP_SEQ parameter (nillable)

Output: IPermitService_CreateWorkPermit_OutputMessage (soap:body, use = literal)

parameters type CreateWorkPermitResponse

Parameter Name Required Type Description
CreateWorkPermitResult Optional WorkPermitDto CreateWorkPermitResult parameter (nillable)
DisplayText Optional string DisplayText parameter (nillable)
FilterQueryId Optional long FilterQueryId parameter
PrimaryKeyId Optional long PrimaryKeyId parameter
PrimaryTableCatalogId Optional long PrimaryTableCatalogId parameter
ValidateOnly Optional boolean ValidateOnly parameter
StateName Optional string StateName parameter (nillable)
AcceptResponsibilityId Optional int AcceptResponsibilityId parameter (nillable)
AcceptResponsibilityName Optional string AcceptResponsibilityName parameter (nillable)
AdditionalContactClassId Optional int AdditionalContactClassId parameter (nillable)
AdditionalId Optional int AdditionalId parameter (nillable)
AdditionalName Optional string AdditionalName parameter (nillable)
Authority1ContactClassId Optional int Authority1ContactClassId parameter (nillable)
Authority1Id Optional int Authority1Id parameter (nillable)
Authority1Name Optional string Authority1Name parameter (nillable)
Authority2ContactClassId Optional int Authority2ContactClassId parameter (nillable)
Authority2Id Optional int Authority2Id parameter (nillable)
Authority2Name Optional string Authority2Name parameter (nillable)
BuildingId Optional int BuildingId parameter (nillable)
Company Optional string Company parameter (nillable)
CompanyAccepting Optional int CompanyAccepting parameter (nillable)
CompanyId Optional int CompanyId parameter (nillable)
ContractId Optional int ContractId parameter (nillable)
DateAcceptedUtc Optional dateTime DateAcceptedUtc parameter (nillable)
DateCompletedUtc Optional dateTime DateCompletedUtc parameter (nillable)
DateFromUtc Optional dateTime DateFromUtc parameter (nillable)
DateIssuedUtc Optional dateTime DateIssuedUtc parameter (nillable)
DateToUtc Optional dateTime DateToUtc parameter (nillable)
Details Optional string Details parameter (nillable)
LocationId Optional int LocationId parameter (nillable)
Name Optional string Name parameter (nillable)
NameId Optional int NameId parameter (nillable)
OtherSafetyEquipment Optional string OtherSafetyEquipment parameter (nillable)
PermitClassId Optional int PermitClassId parameter (nillable)
PrecautionDetails Optional string PrecautionDetails parameter (nillable)
Reason Optional string Reason parameter (nillable)
ResourceId Optional int ResourceId parameter (nillable)
ResponsibleContactClassId Optional int ResponsibleContactClassId parameter (nillable)
ResponsiblePersonId Optional int ResponsiblePersonId parameter (nillable)
ResponsiblePersonName Optional string ResponsiblePersonName parameter (nillable)
RiskAssesmentSubmitted Optional boolean RiskAssesmentSubmitted parameter (nillable)
SpecificLocation Optional string SpecificLocation parameter (nillable)
StateId Optional long StateId parameter (nillable)
StatementSubmitted Optional boolean StatementSubmitted parameter (nillable)
TaskId Optional int TaskId parameter (nillable)
Telephone Optional string Telephone parameter (nillable)
Title Optional string Title parameter (nillable)
ToolsAndEquipment Optional string ToolsAndEquipment parameter (nillable)
ValidityPeriod Optional ValidityPeriod WholePeriod, Daily, PerVisit
WP_SEQ Optional int WP_SEQ parameter (nillable)
Code Examples
C# Example
// Create the service client
using (var client = new PermitServiceClient())
{
    // Create the request parameters
    string sessionId = "your_value_here";
    long impersonateAccountId = 123;
    var dto = new WorkPermitDto
    {
        // Set DTO properties here
    };
    
    // Call the service method
    var response = client.CreateWorkPermit(sessionId, impersonateAccountId, dto);
    
    // Process the response
    if (response != null)
    {
        // Handle successful response
        Console.WriteLine("Operation completed successfully");
    }
}
SOAP XML Example
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:bas="http://basic.evolutionsvc.mriapi.com/">
   <soap:Header/>
   <soap:Body>
      <bas:CreateWorkPermit>
         <bas:sessionId>sample_value</bas:sessionId>
         <bas:impersonateAccountId>123</bas:impersonateAccountId>
         <bas:dto>
            <!-- WorkPermitDto properties here -->
         </bas:dto>
      </bas:CreateWorkPermit>
   </soap:Body>
</soap:Envelope>
PowerShell Example
# Create web service proxy
$serviceUrl = "http://your-evolution-site.com/Services/Basic/PermitService.svc?wsdl"
$proxy = New-WebServiceProxy -Uri $serviceUrl

# Set parameters
$sessionId = "your_value_here"
$impersonateAccountId = 123
$dto = New-Object WorkPermitDto

# Call the service method
$result = $proxy.CreateWorkPermit($sessionId, $impersonateAccountId, $dto)

# Process the result
if ($result) {
    Write-Host "Operation completed successfully"
    $result | Format-List
}

4. GetPermitClassByDto

Style: document

Operation type: Request-response. The endpoint receives a message, and sends a correlated message.

Input: IPermitService_GetPermitClassByDto_InputMessage (soap:body, use = literal)

parameters type GetPermitClassByDto

Parameter Name Required Type Description
sessionId Optional string sessionId parameter (nillable)
impersonateAccountId Optional long impersonateAccountId parameter (nillable)
dto Optional PermitClassDto dto parameter (nillable)
DisplayText Optional string DisplayText parameter (nillable)
FilterQueryId Optional long FilterQueryId parameter
PrimaryKeyId Optional long PrimaryKeyId parameter
PrimaryTableCatalogId Optional long PrimaryTableCatalogId parameter
ValidateOnly Optional boolean ValidateOnly parameter
AllowContractorRequests Optional boolean AllowContractorRequests parameter (nillable)
AlternateReportName Optional string AlternateReportName parameter (nillable)
ConceptReportId Optional int ConceptReportId parameter (nillable)
WP_CLASS_DESC Optional string WP_CLASS_DESC parameter (nillable)
WP_CLASS_FILE Optional string WP_CLASS_FILE parameter (nillable)
WP_CLASS_SEQ Optional int WP_CLASS_SEQ parameter (nillable)
page Optional long page parameter (nillable)

Output: IPermitService_GetPermitClassByDto_OutputMessage (soap:body, use = literal)

parameters type GetPermitClassByDtoResponse

Parameter Name Required Type Description
GetPermitClassByDtoResult Optional ArrayOfPermitClassDto GetPermitClassByDtoResult parameter (nillable)
PermitClassDto Optional PermitClassDto PermitClassDto parameter (nillable)
DisplayText Optional string DisplayText parameter (nillable)
FilterQueryId Optional long FilterQueryId parameter
PrimaryKeyId Optional long PrimaryKeyId parameter
PrimaryTableCatalogId Optional long PrimaryTableCatalogId parameter
ValidateOnly Optional boolean ValidateOnly parameter
AllowContractorRequests Optional boolean AllowContractorRequests parameter (nillable)
AlternateReportName Optional string AlternateReportName parameter (nillable)
ConceptReportId Optional int ConceptReportId parameter (nillable)
WP_CLASS_DESC Optional string WP_CLASS_DESC parameter (nillable)
WP_CLASS_FILE Optional string WP_CLASS_FILE parameter (nillable)
WP_CLASS_SEQ Optional int WP_CLASS_SEQ parameter (nillable)
Code Examples
C# Example
// Create the service client
using (var client = new PermitServiceClient())
{
    // Create the request parameters
    string sessionId = "your_value_here";
    long impersonateAccountId = 123;
    var dto = new PermitClassDto
    {
        // Set DTO properties here
    };
    
    // Call the service method
    var response = client.GetPermitClassByDto(sessionId, impersonateAccountId, dto);
    
    // Process the response
    if (response != null)
    {
        // Handle successful response
        Console.WriteLine("Operation completed successfully");
    }
}
SOAP XML Example
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:bas="http://basic.evolutionsvc.mriapi.com/">
   <soap:Header/>
   <soap:Body>
      <bas:GetPermitClassByDto>
         <bas:sessionId>sample_value</bas:sessionId>
         <bas:impersonateAccountId>123</bas:impersonateAccountId>
         <bas:dto>
            <!-- PermitClassDto properties here -->
         </bas:dto>
      </bas:GetPermitClassByDto>
   </soap:Body>
</soap:Envelope>
PowerShell Example
# Create web service proxy
$serviceUrl = "http://your-evolution-site.com/Services/Basic/PermitService.svc?wsdl"
$proxy = New-WebServiceProxy -Uri $serviceUrl

# Set parameters
$sessionId = "your_value_here"
$impersonateAccountId = 123
$dto = New-Object PermitClassDto

# Call the service method
$result = $proxy.GetPermitClassByDto($sessionId, $impersonateAccountId, $dto)

# Process the result
if ($result) {
    Write-Host "Operation completed successfully"
    $result | Format-List
}

5. GetPermitClassById

Style: document

Operation type: Request-response. The endpoint receives a message, and sends a correlated message.

Input: IPermitService_GetPermitClassById_InputMessage (soap:body, use = literal)

parameters type GetPermitClassById

Parameter Name Required Type Description
sessionId Optional string sessionId parameter (nillable)
impersonateAccountId Optional long impersonateAccountId parameter (nillable)
entityId Optional long entityId parameter

Output: IPermitService_GetPermitClassById_OutputMessage (soap:body, use = literal)

parameters type GetPermitClassByIdResponse

Parameter Name Required Type Description
GetPermitClassByIdResult Optional PermitClassDto GetPermitClassByIdResult parameter (nillable)
DisplayText Optional string DisplayText parameter (nillable)
FilterQueryId Optional long FilterQueryId parameter
PrimaryKeyId Optional long PrimaryKeyId parameter
PrimaryTableCatalogId Optional long PrimaryTableCatalogId parameter
ValidateOnly Optional boolean ValidateOnly parameter
AllowContractorRequests Optional boolean AllowContractorRequests parameter (nillable)
AlternateReportName Optional string AlternateReportName parameter (nillable)
ConceptReportId Optional int ConceptReportId parameter (nillable)
WP_CLASS_DESC Optional string WP_CLASS_DESC parameter (nillable)
WP_CLASS_FILE Optional string WP_CLASS_FILE parameter (nillable)
WP_CLASS_SEQ Optional int WP_CLASS_SEQ parameter (nillable)
Code Examples
C# Example
// Create the service client
using (var client = new PermitServiceClient())
{
    // Create the request parameters
    string sessionId = "your_value_here";
    long impersonateAccountId = 123;
    long entityId = 123;
    
    // Call the service method
    var response = client.GetPermitClassById(sessionId, impersonateAccountId, entityId);
    
    // Process the response
    if (response != null)
    {
        // Handle successful response
        Console.WriteLine("Operation completed successfully");
    }
}
SOAP XML Example
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:bas="http://basic.evolutionsvc.mriapi.com/">
   <soap:Header/>
   <soap:Body>
      <bas:GetPermitClassById>
         <bas:sessionId>sample_value</bas:sessionId>
         <bas:impersonateAccountId>123</bas:impersonateAccountId>
         <bas:entityId>123</bas:entityId>
      </bas:GetPermitClassById>
   </soap:Body>
</soap:Envelope>
PowerShell Example
# Create web service proxy
$serviceUrl = "http://your-evolution-site.com/Services/Basic/PermitService.svc?wsdl"
$proxy = New-WebServiceProxy -Uri $serviceUrl

# Set parameters
$sessionId = "your_value_here"
$impersonateAccountId = 123
$entityId = 123

# Call the service method
$result = $proxy.GetPermitClassById($sessionId, $impersonateAccountId, $entityId)

# Process the result
if ($result) {
    Write-Host "Operation completed successfully"
    $result | Format-List
}

6. GetPermitTemplateById

Style: document

Operation type: Request-response. The endpoint receives a message, and sends a correlated message.

Input: IPermitService_GetPermitTemplateById_InputMessage (soap:body, use = literal)

parameters type GetPermitTemplateById

Parameter Name Required Type Description
sessionId Optional string sessionId parameter (nillable)
impersonateAccountId Optional long impersonateAccountId parameter (nillable)
entityId Optional long entityId parameter

Output: IPermitService_GetPermitTemplateById_OutputMessage (soap:body, use = literal)

parameters type GetPermitTemplateByIdResponse

Parameter Name Required Type Description
GetPermitTemplateByIdResult Optional PermitTemplateDto GetPermitTemplateByIdResult parameter (nillable)
DisplayText Optional string DisplayText parameter (nillable)
FilterQueryId Optional long FilterQueryId parameter
PrimaryKeyId Optional long PrimaryKeyId parameter
PrimaryTableCatalogId Optional long PrimaryTableCatalogId parameter
ValidateOnly Optional boolean ValidateOnly parameter
Additional Optional string Additional parameter (nillable)
AdditionalID Optional int AdditionalID parameter (nillable)
Applicant Optional string Applicant parameter (nillable)
ApplicantId Optional int ApplicantId parameter (nillable)
Authority1 Optional string Authority1 parameter (nillable)
Authority1ID Optional int Authority1ID parameter (nillable)
Authority2 Optional string Authority2 parameter (nillable)
Authority2ID Optional int Authority2ID parameter (nillable)
Company Optional string Company parameter (nillable)
CompanyId Optional int CompanyId parameter (nillable)
Details Optional string Details parameter (nillable)
EntityPrimaryKeyId Optional long EntityPrimaryKeyId parameter (nillable)
OtherSafetyEquipment Optional string OtherSafetyEquipment parameter (nillable)
PermitClassId Optional int PermitClassId parameter (nillable)
PermitTemplateId Optional int PermitTemplateId parameter (nillable)
Reason Optional string Reason parameter (nillable)
ResourceId Optional int ResourceId parameter (nillable)
SpecificLocation Optional string SpecificLocation parameter (nillable)
TableCatalogId Optional long TableCatalogId parameter (nillable)
Telephone Optional string Telephone parameter (nillable)
Title Optional string Title parameter (nillable)
ToolsAndEquipment Optional string ToolsAndEquipment parameter (nillable)
ValidFromOffset Optional double ValidFromOffset parameter (nillable)
ValidToOffset Optional double ValidToOffset parameter (nillable)
Code Examples
C# Example
// Create the service client
using (var client = new PermitServiceClient())
{
    // Create the request parameters
    string sessionId = "your_value_here";
    long impersonateAccountId = 123;
    long entityId = 123;
    
    // Call the service method
    var response = client.GetPermitTemplateById(sessionId, impersonateAccountId, entityId);
    
    // Process the response
    if (response != null)
    {
        // Handle successful response
        Console.WriteLine("Operation completed successfully");
    }
}
SOAP XML Example
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:bas="http://basic.evolutionsvc.mriapi.com/">
   <soap:Header/>
   <soap:Body>
      <bas:GetPermitTemplateById>
         <bas:sessionId>sample_value</bas:sessionId>
         <bas:impersonateAccountId>123</bas:impersonateAccountId>
         <bas:entityId>123</bas:entityId>
      </bas:GetPermitTemplateById>
   </soap:Body>
</soap:Envelope>
PowerShell Example
# Create web service proxy
$serviceUrl = "http://your-evolution-site.com/Services/Basic/PermitService.svc?wsdl"
$proxy = New-WebServiceProxy -Uri $serviceUrl

# Set parameters
$sessionId = "your_value_here"
$impersonateAccountId = 123
$entityId = 123

# Call the service method
$result = $proxy.GetPermitTemplateById($sessionId, $impersonateAccountId, $entityId)

# Process the result
if ($result) {
    Write-Host "Operation completed successfully"
    $result | Format-List
}

7. GetWorkPermitById

Style: document

Operation type: Request-response. The endpoint receives a message, and sends a correlated message.

Input: IPermitService_GetWorkPermitById_InputMessage (soap:body, use = literal)

parameters type GetWorkPermitById

Parameter Name Required Type Description
sessionId Optional string sessionId parameter (nillable)
impersonateAccountId Optional long impersonateAccountId parameter (nillable)
entityId Optional long entityId parameter

Output: IPermitService_GetWorkPermitById_OutputMessage (soap:body, use = literal)

parameters type GetWorkPermitByIdResponse

Parameter Name Required Type Description
GetWorkPermitByIdResult Optional WorkPermitDto GetWorkPermitByIdResult parameter (nillable)
DisplayText Optional string DisplayText parameter (nillable)
FilterQueryId Optional long FilterQueryId parameter
PrimaryKeyId Optional long PrimaryKeyId parameter
PrimaryTableCatalogId Optional long PrimaryTableCatalogId parameter
ValidateOnly Optional boolean ValidateOnly parameter
StateName Optional string StateName parameter (nillable)
AcceptResponsibilityId Optional int AcceptResponsibilityId parameter (nillable)
AcceptResponsibilityName Optional string AcceptResponsibilityName parameter (nillable)
AdditionalContactClassId Optional int AdditionalContactClassId parameter (nillable)
AdditionalId Optional int AdditionalId parameter (nillable)
AdditionalName Optional string AdditionalName parameter (nillable)
Authority1ContactClassId Optional int Authority1ContactClassId parameter (nillable)
Authority1Id Optional int Authority1Id parameter (nillable)
Authority1Name Optional string Authority1Name parameter (nillable)
Authority2ContactClassId Optional int Authority2ContactClassId parameter (nillable)
Authority2Id Optional int Authority2Id parameter (nillable)
Authority2Name Optional string Authority2Name parameter (nillable)
BuildingId Optional int BuildingId parameter (nillable)
Company Optional string Company parameter (nillable)
CompanyAccepting Optional int CompanyAccepting parameter (nillable)
CompanyId Optional int CompanyId parameter (nillable)
ContractId Optional int ContractId parameter (nillable)
DateAcceptedUtc Optional dateTime DateAcceptedUtc parameter (nillable)
DateCompletedUtc Optional dateTime DateCompletedUtc parameter (nillable)
DateFromUtc Optional dateTime DateFromUtc parameter (nillable)
DateIssuedUtc Optional dateTime DateIssuedUtc parameter (nillable)
DateToUtc Optional dateTime DateToUtc parameter (nillable)
Details Optional string Details parameter (nillable)
LocationId Optional int LocationId parameter (nillable)
Name Optional string Name parameter (nillable)
NameId Optional int NameId parameter (nillable)
OtherSafetyEquipment Optional string OtherSafetyEquipment parameter (nillable)
PermitClassId Optional int PermitClassId parameter (nillable)
PrecautionDetails Optional string PrecautionDetails parameter (nillable)
Reason Optional string Reason parameter (nillable)
ResourceId Optional int ResourceId parameter (nillable)
ResponsibleContactClassId Optional int ResponsibleContactClassId parameter (nillable)
ResponsiblePersonId Optional int ResponsiblePersonId parameter (nillable)
ResponsiblePersonName Optional string ResponsiblePersonName parameter (nillable)
RiskAssesmentSubmitted Optional boolean RiskAssesmentSubmitted parameter (nillable)
SpecificLocation Optional string SpecificLocation parameter (nillable)
StateId Optional long StateId parameter (nillable)
StatementSubmitted Optional boolean StatementSubmitted parameter (nillable)
TaskId Optional int TaskId parameter (nillable)
Telephone Optional string Telephone parameter (nillable)
Title Optional string Title parameter (nillable)
ToolsAndEquipment Optional string ToolsAndEquipment parameter (nillable)
ValidityPeriod Optional ValidityPeriod WholePeriod, Daily, PerVisit
WP_SEQ Optional int WP_SEQ parameter (nillable)
Code Examples
C# Example
// Create the service client
using (var client = new PermitServiceClient())
{
    // Create the request parameters
    string sessionId = "your_value_here";
    long impersonateAccountId = 123;
    long entityId = 123;
    
    // Call the service method
    var response = client.GetWorkPermitById(sessionId, impersonateAccountId, entityId);
    
    // Process the response
    if (response != null)
    {
        // Handle successful response
        Console.WriteLine("Operation completed successfully");
    }
}
SOAP XML Example
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:bas="http://basic.evolutionsvc.mriapi.com/">
   <soap:Header/>
   <soap:Body>
      <bas:GetWorkPermitById>
         <bas:sessionId>sample_value</bas:sessionId>
         <bas:impersonateAccountId>123</bas:impersonateAccountId>
         <bas:entityId>123</bas:entityId>
      </bas:GetWorkPermitById>
   </soap:Body>
</soap:Envelope>
PowerShell Example
# Create web service proxy
$serviceUrl = "http://your-evolution-site.com/Services/Basic/PermitService.svc?wsdl"
$proxy = New-WebServiceProxy -Uri $serviceUrl

# Set parameters
$sessionId = "your_value_here"
$impersonateAccountId = 123
$entityId = 123

# Call the service method
$result = $proxy.GetWorkPermitById($sessionId, $impersonateAccountId, $entityId)

# Process the result
if ($result) {
    Write-Host "Operation completed successfully"
    $result | Format-List
}

8. UpdatePermitClass

Style: document

Operation type: Request-response. The endpoint receives a message, and sends a correlated message.

Input: IPermitService_UpdatePermitClass_InputMessage (soap:body, use = literal)

parameters type UpdatePermitClass

Parameter Name Required Type Description
sessionId Optional string sessionId parameter (nillable)
impersonateAccountId Optional long impersonateAccountId parameter (nillable)
dto Optional PermitClassDto dto parameter (nillable)
DisplayText Optional string DisplayText parameter (nillable)
FilterQueryId Optional long FilterQueryId parameter
PrimaryKeyId Optional long PrimaryKeyId parameter
PrimaryTableCatalogId Optional long PrimaryTableCatalogId parameter
ValidateOnly Optional boolean ValidateOnly parameter
AllowContractorRequests Optional boolean AllowContractorRequests parameter (nillable)
AlternateReportName Optional string AlternateReportName parameter (nillable)
ConceptReportId Optional int ConceptReportId parameter (nillable)
WP_CLASS_DESC Optional string WP_CLASS_DESC parameter (nillable)
WP_CLASS_FILE Optional string WP_CLASS_FILE parameter (nillable)
WP_CLASS_SEQ Optional int WP_CLASS_SEQ parameter (nillable)

Output: IPermitService_UpdatePermitClass_OutputMessage (soap:body, use = literal)

parameters type UpdatePermitClassResponse

Parameter Name Required Type Description
UpdatePermitClassResult Optional PermitClassDto UpdatePermitClassResult parameter (nillable)
DisplayText Optional string DisplayText parameter (nillable)
FilterQueryId Optional long FilterQueryId parameter
PrimaryKeyId Optional long PrimaryKeyId parameter
PrimaryTableCatalogId Optional long PrimaryTableCatalogId parameter
ValidateOnly Optional boolean ValidateOnly parameter
AllowContractorRequests Optional boolean AllowContractorRequests parameter (nillable)
AlternateReportName Optional string AlternateReportName parameter (nillable)
ConceptReportId Optional int ConceptReportId parameter (nillable)
WP_CLASS_DESC Optional string WP_CLASS_DESC parameter (nillable)
WP_CLASS_FILE Optional string WP_CLASS_FILE parameter (nillable)
WP_CLASS_SEQ Optional int WP_CLASS_SEQ parameter (nillable)
Code Examples
C# Example
// Create the service client
using (var client = new PermitServiceClient())
{
    // Create the request parameters
    string sessionId = "your_value_here";
    long impersonateAccountId = 123;
    var dto = new PermitClassDto
    {
        // Set DTO properties here
    };
    
    // Call the service method
    var response = client.UpdatePermitClass(sessionId, impersonateAccountId, dto);
    
    // Process the response
    if (response != null)
    {
        // Handle successful response
        Console.WriteLine("Operation completed successfully");
    }
}
SOAP XML Example
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:bas="http://basic.evolutionsvc.mriapi.com/">
   <soap:Header/>
   <soap:Body>
      <bas:UpdatePermitClass>
         <bas:sessionId>sample_value</bas:sessionId>
         <bas:impersonateAccountId>123</bas:impersonateAccountId>
         <bas:dto>
            <!-- PermitClassDto properties here -->
         </bas:dto>
      </bas:UpdatePermitClass>
   </soap:Body>
</soap:Envelope>
PowerShell Example
# Create web service proxy
$serviceUrl = "http://your-evolution-site.com/Services/Basic/PermitService.svc?wsdl"
$proxy = New-WebServiceProxy -Uri $serviceUrl

# Set parameters
$sessionId = "your_value_here"
$impersonateAccountId = 123
$dto = New-Object PermitClassDto

# Call the service method
$result = $proxy.UpdatePermitClass($sessionId, $impersonateAccountId, $dto)

# Process the result
if ($result) {
    Write-Host "Operation completed successfully"
    $result | Format-List
}

9. UpdatePermitTemplate

Style: document

Operation type: Request-response. The endpoint receives a message, and sends a correlated message.

Input: IPermitService_UpdatePermitTemplate_InputMessage (soap:body, use = literal)

parameters type UpdatePermitTemplate

Parameter Name Required Type Description
sessionId Optional string sessionId parameter (nillable)
impersonateAccountId Optional long impersonateAccountId parameter (nillable)
dto Optional PermitTemplateDto dto parameter (nillable)
DisplayText Optional string DisplayText parameter (nillable)
FilterQueryId Optional long FilterQueryId parameter
PrimaryKeyId Optional long PrimaryKeyId parameter
PrimaryTableCatalogId Optional long PrimaryTableCatalogId parameter
ValidateOnly Optional boolean ValidateOnly parameter
Additional Optional string Additional parameter (nillable)
AdditionalID Optional int AdditionalID parameter (nillable)
Applicant Optional string Applicant parameter (nillable)
ApplicantId Optional int ApplicantId parameter (nillable)
Authority1 Optional string Authority1 parameter (nillable)
Authority1ID Optional int Authority1ID parameter (nillable)
Authority2 Optional string Authority2 parameter (nillable)
Authority2ID Optional int Authority2ID parameter (nillable)
Company Optional string Company parameter (nillable)
CompanyId Optional int CompanyId parameter (nillable)
Details Optional string Details parameter (nillable)
EntityPrimaryKeyId Optional long EntityPrimaryKeyId parameter (nillable)
OtherSafetyEquipment Optional string OtherSafetyEquipment parameter (nillable)
PermitClassId Optional int PermitClassId parameter (nillable)
PermitTemplateId Optional int PermitTemplateId parameter (nillable)
Reason Optional string Reason parameter (nillable)
ResourceId Optional int ResourceId parameter (nillable)
SpecificLocation Optional string SpecificLocation parameter (nillable)
TableCatalogId Optional long TableCatalogId parameter (nillable)
Telephone Optional string Telephone parameter (nillable)
Title Optional string Title parameter (nillable)
ToolsAndEquipment Optional string ToolsAndEquipment parameter (nillable)
ValidFromOffset Optional double ValidFromOffset parameter (nillable)
ValidToOffset Optional double ValidToOffset parameter (nillable)

Output: IPermitService_UpdatePermitTemplate_OutputMessage (soap:body, use = literal)

parameters type UpdatePermitTemplateResponse

Parameter Name Required Type Description
UpdatePermitTemplateResult Optional PermitTemplateDto UpdatePermitTemplateResult parameter (nillable)
DisplayText Optional string DisplayText parameter (nillable)
FilterQueryId Optional long FilterQueryId parameter
PrimaryKeyId Optional long PrimaryKeyId parameter
PrimaryTableCatalogId Optional long PrimaryTableCatalogId parameter
ValidateOnly Optional boolean ValidateOnly parameter
Additional Optional string Additional parameter (nillable)
AdditionalID Optional int AdditionalID parameter (nillable)
Applicant Optional string Applicant parameter (nillable)
ApplicantId Optional int ApplicantId parameter (nillable)
Authority1 Optional string Authority1 parameter (nillable)
Authority1ID Optional int Authority1ID parameter (nillable)
Authority2 Optional string Authority2 parameter (nillable)
Authority2ID Optional int Authority2ID parameter (nillable)
Company Optional string Company parameter (nillable)
CompanyId Optional int CompanyId parameter (nillable)
Details Optional string Details parameter (nillable)
EntityPrimaryKeyId Optional long EntityPrimaryKeyId parameter (nillable)
OtherSafetyEquipment Optional string OtherSafetyEquipment parameter (nillable)
PermitClassId Optional int PermitClassId parameter (nillable)
PermitTemplateId Optional int PermitTemplateId parameter (nillable)
Reason Optional string Reason parameter (nillable)
ResourceId Optional int ResourceId parameter (nillable)
SpecificLocation Optional string SpecificLocation parameter (nillable)
TableCatalogId Optional long TableCatalogId parameter (nillable)
Telephone Optional string Telephone parameter (nillable)
Title Optional string Title parameter (nillable)
ToolsAndEquipment Optional string ToolsAndEquipment parameter (nillable)
ValidFromOffset Optional double ValidFromOffset parameter (nillable)
ValidToOffset Optional double ValidToOffset parameter (nillable)
Code Examples
C# Example
// Create the service client
using (var client = new PermitServiceClient())
{
    // Create the request parameters
    string sessionId = "your_value_here";
    long impersonateAccountId = 123;
    var dto = new PermitTemplateDto
    {
        // Set DTO properties here
    };
    
    // Call the service method
    var response = client.UpdatePermitTemplate(sessionId, impersonateAccountId, dto);
    
    // Process the response
    if (response != null)
    {
        // Handle successful response
        Console.WriteLine("Operation completed successfully");
    }
}
SOAP XML Example
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:bas="http://basic.evolutionsvc.mriapi.com/">
   <soap:Header/>
   <soap:Body>
      <bas:UpdatePermitTemplate>
         <bas:sessionId>sample_value</bas:sessionId>
         <bas:impersonateAccountId>123</bas:impersonateAccountId>
         <bas:dto>
            <!-- PermitTemplateDto properties here -->
         </bas:dto>
      </bas:UpdatePermitTemplate>
   </soap:Body>
</soap:Envelope>
PowerShell Example
# Create web service proxy
$serviceUrl = "http://your-evolution-site.com/Services/Basic/PermitService.svc?wsdl"
$proxy = New-WebServiceProxy -Uri $serviceUrl

# Set parameters
$sessionId = "your_value_here"
$impersonateAccountId = 123
$dto = New-Object PermitTemplateDto

# Call the service method
$result = $proxy.UpdatePermitTemplate($sessionId, $impersonateAccountId, $dto)

# Process the result
if ($result) {
    Write-Host "Operation completed successfully"
    $result | Format-List
}

10. UpdateWorkPermit

Style: document

Operation type: Request-response. The endpoint receives a message, and sends a correlated message.

Input: IPermitService_UpdateWorkPermit_InputMessage (soap:body, use = literal)

parameters type UpdateWorkPermit

Parameter Name Required Type Description
sessionId Optional string sessionId parameter (nillable)
impersonateAccountId Optional long impersonateAccountId parameter (nillable)
dto Optional WorkPermitDto dto parameter (nillable)
DisplayText Optional string DisplayText parameter (nillable)
FilterQueryId Optional long FilterQueryId parameter
PrimaryKeyId Optional long PrimaryKeyId parameter
PrimaryTableCatalogId Optional long PrimaryTableCatalogId parameter
ValidateOnly Optional boolean ValidateOnly parameter
StateName Optional string StateName parameter (nillable)
AcceptResponsibilityId Optional int AcceptResponsibilityId parameter (nillable)
AcceptResponsibilityName Optional string AcceptResponsibilityName parameter (nillable)
AdditionalContactClassId Optional int AdditionalContactClassId parameter (nillable)
AdditionalId Optional int AdditionalId parameter (nillable)
AdditionalName Optional string AdditionalName parameter (nillable)
Authority1ContactClassId Optional int Authority1ContactClassId parameter (nillable)
Authority1Id Optional int Authority1Id parameter (nillable)
Authority1Name Optional string Authority1Name parameter (nillable)
Authority2ContactClassId Optional int Authority2ContactClassId parameter (nillable)
Authority2Id Optional int Authority2Id parameter (nillable)
Authority2Name Optional string Authority2Name parameter (nillable)
BuildingId Optional int BuildingId parameter (nillable)
Company Optional string Company parameter (nillable)
CompanyAccepting Optional int CompanyAccepting parameter (nillable)
CompanyId Optional int CompanyId parameter (nillable)
ContractId Optional int ContractId parameter (nillable)
DateAcceptedUtc Optional dateTime DateAcceptedUtc parameter (nillable)
DateCompletedUtc Optional dateTime DateCompletedUtc parameter (nillable)
DateFromUtc Optional dateTime DateFromUtc parameter (nillable)
DateIssuedUtc Optional dateTime DateIssuedUtc parameter (nillable)
DateToUtc Optional dateTime DateToUtc parameter (nillable)
Details Optional string Details parameter (nillable)
LocationId Optional int LocationId parameter (nillable)
Name Optional string Name parameter (nillable)
NameId Optional int NameId parameter (nillable)
OtherSafetyEquipment Optional string OtherSafetyEquipment parameter (nillable)
PermitClassId Optional int PermitClassId parameter (nillable)
PrecautionDetails Optional string PrecautionDetails parameter (nillable)
Reason Optional string Reason parameter (nillable)
ResourceId Optional int ResourceId parameter (nillable)
ResponsibleContactClassId Optional int ResponsibleContactClassId parameter (nillable)
ResponsiblePersonId Optional int ResponsiblePersonId parameter (nillable)
ResponsiblePersonName Optional string ResponsiblePersonName parameter (nillable)
RiskAssesmentSubmitted Optional boolean RiskAssesmentSubmitted parameter (nillable)
SpecificLocation Optional string SpecificLocation parameter (nillable)
StateId Optional long StateId parameter (nillable)
StatementSubmitted Optional boolean StatementSubmitted parameter (nillable)
TaskId Optional int TaskId parameter (nillable)
Telephone Optional string Telephone parameter (nillable)
Title Optional string Title parameter (nillable)
ToolsAndEquipment Optional string ToolsAndEquipment parameter (nillable)
ValidityPeriod Optional ValidityPeriod WholePeriod, Daily, PerVisit
WP_SEQ Optional int WP_SEQ parameter (nillable)
statusChangeComments Optional string statusChangeComments parameter (nillable)

Output: IPermitService_UpdateWorkPermit_OutputMessage (soap:body, use = literal)

parameters type UpdateWorkPermitResponse

Parameter Name Required Type Description
UpdateWorkPermitResult Optional WorkPermitDto UpdateWorkPermitResult parameter (nillable)
DisplayText Optional string DisplayText parameter (nillable)
FilterQueryId Optional long FilterQueryId parameter
PrimaryKeyId Optional long PrimaryKeyId parameter
PrimaryTableCatalogId Optional long PrimaryTableCatalogId parameter
ValidateOnly Optional boolean ValidateOnly parameter
StateName Optional string StateName parameter (nillable)
AcceptResponsibilityId Optional int AcceptResponsibilityId parameter (nillable)
AcceptResponsibilityName Optional string AcceptResponsibilityName parameter (nillable)
AdditionalContactClassId Optional int AdditionalContactClassId parameter (nillable)
AdditionalId Optional int AdditionalId parameter (nillable)
AdditionalName Optional string AdditionalName parameter (nillable)
Authority1ContactClassId Optional int Authority1ContactClassId parameter (nillable)
Authority1Id Optional int Authority1Id parameter (nillable)
Authority1Name Optional string Authority1Name parameter (nillable)
Authority2ContactClassId Optional int Authority2ContactClassId parameter (nillable)
Authority2Id Optional int Authority2Id parameter (nillable)
Authority2Name Optional string Authority2Name parameter (nillable)
BuildingId Optional int BuildingId parameter (nillable)
Company Optional string Company parameter (nillable)
CompanyAccepting Optional int CompanyAccepting parameter (nillable)
CompanyId Optional int CompanyId parameter (nillable)
ContractId Optional int ContractId parameter (nillable)
DateAcceptedUtc Optional dateTime DateAcceptedUtc parameter (nillable)
DateCompletedUtc Optional dateTime DateCompletedUtc parameter (nillable)
DateFromUtc Optional dateTime DateFromUtc parameter (nillable)
DateIssuedUtc Optional dateTime DateIssuedUtc parameter (nillable)
DateToUtc Optional dateTime DateToUtc parameter (nillable)
Details Optional string Details parameter (nillable)
LocationId Optional int LocationId parameter (nillable)
Name Optional string Name parameter (nillable)
NameId Optional int NameId parameter (nillable)
OtherSafetyEquipment Optional string OtherSafetyEquipment parameter (nillable)
PermitClassId Optional int PermitClassId parameter (nillable)
PrecautionDetails Optional string PrecautionDetails parameter (nillable)
Reason Optional string Reason parameter (nillable)
ResourceId Optional int ResourceId parameter (nillable)
ResponsibleContactClassId Optional int ResponsibleContactClassId parameter (nillable)
ResponsiblePersonId Optional int ResponsiblePersonId parameter (nillable)
ResponsiblePersonName Optional string ResponsiblePersonName parameter (nillable)
RiskAssesmentSubmitted Optional boolean RiskAssesmentSubmitted parameter (nillable)
SpecificLocation Optional string SpecificLocation parameter (nillable)
StateId Optional long StateId parameter (nillable)
StatementSubmitted Optional boolean StatementSubmitted parameter (nillable)
TaskId Optional int TaskId parameter (nillable)
Telephone Optional string Telephone parameter (nillable)
Title Optional string Title parameter (nillable)
ToolsAndEquipment Optional string ToolsAndEquipment parameter (nillable)
ValidityPeriod Optional ValidityPeriod WholePeriod, Daily, PerVisit
WP_SEQ Optional int WP_SEQ parameter (nillable)
Code Examples
C# Example
// Create the service client
using (var client = new PermitServiceClient())
{
    // Create the request parameters
    string sessionId = "your_value_here";
    long impersonateAccountId = 123;
    var dto = new WorkPermitDto
    {
        // Set DTO properties here
    };
    
    // Call the service method
    var response = client.UpdateWorkPermit(sessionId, impersonateAccountId, dto);
    
    // Process the response
    if (response != null)
    {
        // Handle successful response
        Console.WriteLine("Operation completed successfully");
    }
}
SOAP XML Example
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:bas="http://basic.evolutionsvc.mriapi.com/">
   <soap:Header/>
   <soap:Body>
      <bas:UpdateWorkPermit>
         <bas:sessionId>sample_value</bas:sessionId>
         <bas:impersonateAccountId>123</bas:impersonateAccountId>
         <bas:dto>
            <!-- WorkPermitDto properties here -->
         </bas:dto>
      </bas:UpdateWorkPermit>
   </soap:Body>
</soap:Envelope>
PowerShell Example
# Create web service proxy
$serviceUrl = "http://your-evolution-site.com/Services/Basic/PermitService.svc?wsdl"
$proxy = New-WebServiceProxy -Uri $serviceUrl

# Set parameters
$sessionId = "your_value_here"
$impersonateAccountId = 123
$dto = New-Object WorkPermitDto

# Call the service method
$result = $proxy.UpdateWorkPermit($sessionId, $impersonateAccountId, $dto)

# Process the result
if ($result) {
    Write-Host "Operation completed successfully"
    $result | Format-List
}