Tmi - constipation!

BabyM
Anyone have any luck taking any ensure or stool softeners to help with constipation? Doctor said to just keep eating broccoli and beans, but I end up throwing it up. Thanks in advance!