For the cobs, you'll want to chop them up a bit first otherwise they'll take years to compost down but, the chopped husks are great for creating soil structure as the have a very high C:N ratio.
The husks have a very low C:N ratio and compost quite hot. Make sure that you have a lot of browns (usually in the form of leaves but, shredded newspaper works as well. Though leaves have a lower C:N ratio of about 300:1 whereas newspaper is about 2000:1 so, very slow to break down). Anyway be sure to turn the pile at least once a week but preferably once a day with the corn husks or your compost will go anaerobic on you.
They are great and make great soil and with turning, you will have soil in about a month.
It helps to run over them with the mower first but, they will compost just fine left whole.