I've done this before using Dove soap, it actually works fairly well, it's not as good as some of the finer shaving products in the market but it does the job

How to Make a Shaving Cream for Men:...