// Implementation of abstract method (AbsractWsClient.GetResult()).
 public override byte[] GetResult(string jobId, string format)
 {
     PrintDebugMessage("GetResult", "Begin", 1);
     PrintDebugMessage("GetResult", "jobId: " + jobId, 1);
     PrintDebugMessage("GetResult", "format: " + format, 1);
     byte[] result = null;
     result = SrvProxy.getResult(jobId, format, null);
     PrintDebugMessage("GetResult", "End", 1);
     return(result);
 }
 // Implementation of abstract method (AbsractWsClient.GetResult()).
 public override byte[] GetResult(string jobId, string format)
 {
     PrintDebugMessage("GetResult", "Begin", 1);
     if (jobId == null || jobId.Length < 1)
     {
         throw new ClientException("A job identifier is required to get result.");
     }
     PrintDebugMessage("GetResult", "jobId: " + jobId, 1);
     PrintDebugMessage("GetResult", "format: " + format, 1);
     byte[] result = null;
     result = SrvProxy.getResult(jobId, format, null);
     PrintDebugMessage("GetResult", "End", 1);
     return(result);
 }
        //
        public int GetNAlignments(string jobId)
        {
            PrintDebugMessage("GetNAlignments", "Begin", 1);
            PrintDebugMessage("GetNAlignments", "jobId: " + jobId, 1);
            byte[] result = null;

            result = SrvProxy.getResult(jobId, "nalignments", null);
            string s = System.Text.Encoding.UTF8.GetString(result);

            PrintDebugMessage("GetNAlignments", " ret: " + s, 1);
            PrintDebugMessage("GetNAlignments", "End", 1);
            int ret = Int32.Parse(s);

            return(ret);
        }
        //
        public byte[] GetResultForAlignment(string jobId, string format, int alignment)
        {
            PrintDebugMessage("GetResultForAlignment", "Begin", 1);
            PrintDebugMessage("GetResultForAlignment", "jobId: " + jobId, 1);
            PrintDebugMessage("GetResultForAlignment", "format: " + format, 1);
            byte[] result = null;

            wsRawOutputParameter[] outparams = new wsRawOutputParameter[1];
            outparams[0]          = new wsRawOutputParameter();
            outparams[0].name     = "alignmentno";
            outparams[0].value    = new string[1];
            outparams[0].value[0] = alignment.ToString("G");

            PrintDebugMessage("GetResultForAlignment", "alignmentno:" + outparams[0].value[0], 1);

            result = SrvProxy.getResult(jobId, format, outparams);
            PrintDebugMessage("GetResultForAlignment", "End", 1);
            return(result);
        }