The dressing method, symmetries, and invariant solutions