/// <summary>
        /// This builds a response object which will be serialized as XML, and verified
        /// </summary>
        /// <param name="respMessage">The response message</param>
        /// <returns>The serialized XML</returns>
        /// <remarks>
        /// respMessage must be one of:
        /// OK
        /// FAILED
        /// FAILED_DO_NOT_RETRY
        /// </remarks>
        private string BuildResponse(string respMessage)
        {
            var response = new Response
            {
                Result = new Result
                {
                    Code = respMessage
                }
            };

            var xmlResponse = Response.SerializeAsXml(response);

            SchemaValidator.VerifyVsSchema(xmlResponse, rschFilePath);
            return(Response.SerializeAsXml(response));
        }
 /// <summary>
 /// This will verify the Batch data vs. the batch schema.
 /// </summary>
 /// <param name="batchXml">Batch data (as XML)</param>
 /// <returns>True if verified</returns>
 /// <remarks>
 /// It will not be verified if the configuration does not contain any reference to the Schema.
 /// </remarks>
 private bool VerifyBatchSchema(string batchXml)
 {
     return(schFilePath == null || SchemaValidator.VerifyVsSchema(batchXml, schFilePath));
 }