The inverse spectral problem for the Dirichlet-to-Neumann operator (I)