Narrative:

At cruise the right 'wing/body overheat' light came on at FL370. Started descent as the first officer started the checklist. Leveled off at FL250 and finished the QRH. The light went out at that time. Continued on to ZZZ and the light came on again some time later. Reran the QRH at which point the light would not go out. Pulled engine to idle to reduce the air temperature in the engine. Continued to check the fire/overheat loops to ensure valid test. Center and I declared an emergency at that point. On downwind to landing in ZZZ the light again went out after the throttle had been at idle for a period of time. The first officer and I decided to do a 15 degree flap landing just in case the problem got worse than the engine just at idle. Landing was normal.

Google
 

Original NASA ASRS Text

Title: A B737 WING BODY OVERHEAT LIGHT ILLUMINATED THEN EXTINGUISHED AND SUBSEQUENTLY ILLUMINATED AGAIN. THE HOT AIR LEAK WAS ON THE L SIDE.

Narrative: AT CRUISE THE R 'WING/BODY OVERHEAT' LIGHT CAME ON AT FL370. STARTED DSCNT AS THE FO STARTED THE CHKLIST. LEVELED OFF AT FL250 AND FINISHED THE QRH. THE LIGHT WENT OUT AT THAT TIME. CONTINUED ON TO ZZZ AND THE LIGHT CAME ON AGAIN SOME TIME LATER. RERAN THE QRH AT WHICH POINT THE LIGHT WOULD NOT GO OUT. PULLED ENG TO IDLE TO REDUCE THE AIR TEMP IN THE ENG. CONTINUED TO CHK THE FIRE/OVERHEAT LOOPS TO ENSURE VALID TEST. CTR AND I DECLARED AN EMER AT THAT POINT. ON DOWNWIND TO LNDG IN ZZZ THE LIGHT AGAIN WENT OUT AFTER THE THROTTLE HAD BEEN AT IDLE FOR A PERIOD OF TIME. THE FO AND I DECIDED TO DO A 15 DEG FLAP LNDG JUST IN CASE THE PROB GOT WORSE THAN THE ENG JUST AT IDLE. LNDG WAS NORMAL.

Data retrieved from NASA's ASRS site as of July 2007 and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.