How to invoice a service that occurs over a certain period

How to invoice a service that occurs over a certain period

Hello all

I am having trouble figuring out how to do this. My company offers a service that continues for a year. I take the payment upfront for all the amount. 

From what I have read is that I can use a retainer invoice to receive the payment and register it as unearned revenue. I have two problems with that.
First, how to convert it to revenue? Do I generate an invoice for each month of that period for example?
Second, my customers want an invoice, not a retainer invoice. I do not know why.

Do you guys have any suggestions for me?

Thanks in advance