Soliton solutions of KdV type equations