Using Lie group theory and canonical transformations, we construct explicit solutions of nonlinear Schrödinger equations with spatially inhomogeneous nonlinearities. We present the general theory, use it to show that localized nonlinearities can support bound states with an arbitrary number solitons, and discuss other applications of interest to the field of nonlinear matter waves.