Nonperturbative solution to the inverse scattering problem