Canonical structure of soliton equations via isospectral eigenvalue problems