Dear hassan le pro,
Welcome to the Wefugees Community and thank you for reaching out to us.
In general, refugees can get married in Germany. But why are you not able to travel to Denmark? Is your asylum procedure still pending? We actually wrote a blog on the marriage process in Germany, including a list of the most likely required documents. Furthermore, we discussed this topic already a couple of times on this platform. If you check this thread, for instance, you will find more information and links. Once you are married, you may also apply for a residence permit as spouse of an EU cititzen (either in Denmark or in Germany - depending on where you will live together).
I hope this helps and please don't hesitate to get back to us with any further questions or if you want to discuss your case in more detail.
All the best,