Add shanhaijing_set_message helper function.