Web Service: DirectPrintingService

Port DirectPrintingService

Location:
http://<MRI_Evolution_Site_Path>/Services/Basic/DirectPrintingService.svc
Protocol:
SOAP
Transport protocol:
SOAP over HTTP
Operations:
  1. DeleteDocumentDetail
  2. DownloadNextDocumentDetail
  3. GetDocumentsCountDetail

Port type IDirectPrintingService

1. DeleteDocument

Style: document

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

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

parameters type DeleteDocument

Parameter Name Required Type Description
sessionId Optional string sessionId parameter (nillable)
impersonateAccountId Optional long impersonateAccountId parameter (nillable)
machineName Optional string machineName parameter (nillable)
documentId Optional long documentId parameter
Code Examples
C# Example
// Create the service client
using (var client = new DirectPrintingServiceClient())
{
    // Create the request parameters
    string sessionId = "your_value_here";
    long impersonateAccountId = 123;
    string machineName = "your_value_here";
    
    // Call the service method
    var response = client.DeleteDocument(sessionId, impersonateAccountId, machineName);
    
    // 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:DeleteDocument>
         <bas:sessionId>sample_value</bas:sessionId>
         <bas:impersonateAccountId>123</bas:impersonateAccountId>
         <bas:machineName>sample_value</bas:machineName>
      </bas:DeleteDocument>
   </soap:Body>
</soap:Envelope>
PowerShell Example
# Create web service proxy
$serviceUrl = "http://your-evolution-site.com/Services/Basic/DirectPrintingService.svc?wsdl"
$proxy = New-WebServiceProxy -Uri $serviceUrl

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

# Call the service method
$result = $proxy.DeleteDocument($sessionId, $impersonateAccountId, $machineName)

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

2. DownloadNextDocument

Style: document

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

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

parameters type DownloadNextDocument

Parameter Name Required Type Description
sessionId Optional string sessionId parameter (nillable)
MachineName Optional string MachineName parameter (nillable)

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

parameters type DownloadNextDocumentResponse

Parameter Name Required Type Description
FileByteStream Required StreamBody FileByteStream parameter
Code Examples
C# Example
// Create the service client
using (var client = new DirectPrintingServiceClient())
{
    // Create the request parameters
    string sessionId = "your_value_here";
    string MachineName = "your_value_here";
    
    // Call the service method
    var response = client.DownloadNextDocument(sessionId, MachineName);
    
    // 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:DownloadNextDocument>
         <bas:sessionId>sample_value</bas:sessionId>
         <bas:MachineName>sample_value</bas:MachineName>
      </bas:DownloadNextDocument>
   </soap:Body>
</soap:Envelope>
PowerShell Example
# Create web service proxy
$serviceUrl = "http://your-evolution-site.com/Services/Basic/DirectPrintingService.svc?wsdl"
$proxy = New-WebServiceProxy -Uri $serviceUrl

# Set parameters
$sessionId = "your_value_here"
$MachineName = "your_value_here"

# Call the service method
$result = $proxy.DownloadNextDocument($sessionId, $MachineName)

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

3. GetDocumentsCount

Style: document

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

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

parameters type GetDocumentsCount

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

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

parameters type GetDocumentsCountResponse

Parameter Name Required Type Description
GetDocumentsCountResult Optional int GetDocumentsCountResult parameter
Code Examples
C# Example
// Create the service client
using (var client = new DirectPrintingServiceClient())
{
    // Create the request parameters
    string sessionId = "your_value_here";
    long impersonateAccountId = 123;
    string machineName = "your_value_here";
    
    // Call the service method
    var response = client.GetDocumentsCount(sessionId, impersonateAccountId, machineName);
    
    // 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:GetDocumentsCount>
         <bas:sessionId>sample_value</bas:sessionId>
         <bas:impersonateAccountId>123</bas:impersonateAccountId>
         <bas:machineName>sample_value</bas:machineName>
      </bas:GetDocumentsCount>
   </soap:Body>
</soap:Envelope>
PowerShell Example
# Create web service proxy
$serviceUrl = "http://your-evolution-site.com/Services/Basic/DirectPrintingService.svc?wsdl"
$proxy = New-WebServiceProxy -Uri $serviceUrl

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

# Call the service method
$result = $proxy.GetDocumentsCount($sessionId, $impersonateAccountId, $machineName)

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