Web Service: TimeZoneService
Port TimeZoneService
Location:
http://<MRI_Evolution_Site_Path>/Services/Basic/TimeZoneService.svc
Protocol:
SOAP
Transport protocol:
SOAP over HTTP
Operations:
- GetTimeZoneInfoIdsDetail
Port type ITimeZoneService
1. GetTimeZoneInfoIds
Style: document
Operation type: Request-response. The endpoint receives a message, and sends a correlated message.
Input: ITimeZoneService_GetTimeZoneInfoIds_InputMessage (soap:body, use = literal)
parameters type GetTimeZoneInfoIds
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| sessionId | Optional | string | sessionId parameter (nillable) |
| impersonateAccountId | Optional | long | impersonateAccountId parameter (nillable) |
Output: ITimeZoneService_GetTimeZoneInfoIds_OutputMessage (soap:body, use = literal)
parameters type GetTimeZoneInfoIdsResponse
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| GetTimeZoneInfoIdsResult | Optional | ArrayOfstring | GetTimeZoneInfoIdsResult parameter (nillable) |
| string | Optional | string | string parameter (nillable) |
Code Examples
C# Example
// Create the service client
using (var client = new TimeZoneServiceClient())
{
// Create the request parameters
string sessionId = "your_value_here";
long impersonateAccountId = 123;
// Call the service method
var response = client.GetTimeZoneInfoIds(sessionId, impersonateAccountId);
// 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:GetTimeZoneInfoIds>
<bas:sessionId>sample_value</bas:sessionId>
<bas:impersonateAccountId>123</bas:impersonateAccountId>
</bas:GetTimeZoneInfoIds>
</soap:Body>
</soap:Envelope>
PowerShell Example
# Create web service proxy
$serviceUrl = "http://your-evolution-site.com/Services/Basic/TimeZoneService.svc?wsdl"
$proxy = New-WebServiceProxy -Uri $serviceUrl
# Set parameters
$sessionId = "your_value_here"
$impersonateAccountId = 123
# Call the service method
$result = $proxy.GetTimeZoneInfoIds($sessionId, $impersonateAccountId)
# Process the result
if ($result) {
Write-Host "Operation completed successfully"
$result | Format-List
}