Cooking, baking, frying, and roasting are all the Torah melachah of cooking, even a food that is eaten raw. One may cook in the sun itself, but not in something heated by the sun, and not in a pot heated by fire. A solar water heater may be used as explained below, and with a boiler one should be stringent with very hot water. From the booklet Shabbat baHalachah ubaAgadah of Rabbi David Shalom Naki, shlit"a.