A geometrical approach to the integrability of soliton equations