Brocho before eating the wafer: Borei Minei Mezonos (unless one has no desire for the wafer)
Brocho before eating the ice cream: Shehakol Niyeh Bedvoro
Brocho after eating the proper shiur of this: Al Hamichya (if proper shiur of wafer was consumed), and Borei Nefashos
Source: The Laws of B'rachos (pages 223, 370)