On the complete integrability of the nonlinear Schrödinger equation