How to Create WSDL? and test it ------- KINDLY HELP

How to Create WSDL and expose the fields for Problem and Known Error Task????