Yes, both wax gourd and corn stigma have the effects of clearing heat and diuresis. In fact, as early as in the ancient prescriptions of traditional Chinese medicine, it is recorded that as long as corn is boiled in water, it will have the effect of losing weight and diuresis. You can see it in Chinese medicine shops now.
However, their function is dietotherapy, not medicine, and the effect is not obvious. If you want to lose weight, drinking melon and corn water is one thing, on the other hand, you need to control your calorie intake, eat more coarse grains and have a light diet, so as to lose weight.