Green functions of solitons in a heat bath