Publishing a Form template and Uploading the template as a Form Service
Step 1: Create a InfoPath Form
Step 2 : Do not add any submit buttons
Step 2: Go to the Design Checker and make sure under the compatibility settings, Browser Compatibility is checked.
Step 3: Go to Tools >> Form Options >> Property Promotion. Add the columns you need for the Form.
Step 4: Save and Publish the Form to any location.
Step 5: Open the Central Administration on the Server. Go to Application Management >> Infopath Forms Services >> Upload Form Template.
Step 6: Browse to the location where you published your Form
Step 7: Click Upload. Your Form is now available as a Form Service.
Enable the Form to a Form Library
Step 1. Go to the Site you are interested
Step 2. Create a Form Library
Step 3. Step 4. Go to >> Settings >> Form Library Settings >> Add From Existing Site Content Types
Step 4: Select Microsoft Office InfoPath from the Group
Step 5: Your new Form would appear in the "Available Site Content Type" List. Add the form to the "Content Types to add" List.
Step 6: Go to >> Settings >> Form Library Settings >> Advanced Settings
Step 7. Select Yes for "Allow Management of Content Types"
Step 8. Under Open Browser - enabled documents Select Display as Web Page option
Your Form is now enabled to a Form Library....
Happy Coding