Ejemplo n.º 1
0
    public byte[] ReceiveMDSMessage(byte[] bytesOfMessage)
    {
        var message = WebServiceHelper.DeserializeMessage(bytesOfMessage);

        try
        {
            var response = ProcessMDSMessage(message);
            return(WebServiceHelper.SerializeMessage(response));
        }
        catch (Exception ex)
        {
            var response = message.CreateResponseMessage();
            response.Result.Success    = false;
            response.Result.ResultText = "Error in ProcessMDSMessage method: " + ex.Message;
            return(WebServiceHelper.SerializeMessage(response));
        }
    }