Type the document name in the File name box. You can use a document name such as TestForm.
Click Next.
In the Enter a name for this data connection box, type a name for this data connection.
In the Data Connection Wizard, click Finish.
In the Submit Options dialog box, click OK.
Save your form template as SubmitToWSS2010.xsn.
Start InfoPath Filler 2010
Click Find a Form.
Find SubmitToWSS2010.xsn, select it, and then click Open.
Complete the form.
On the File menu, click Submit. If the form is submitted successfully, you receive a message that indicates this.
Quit InfoPath Filler. If you are prompted to save your changes to the form, click Don't Save.
Start Windows Internet Explorer. Locate the document library that you provided in step 6 of "Use the UI to submit the form data to a SharePoint Services document library in InfoPath" You will see a new Form item in the document library, and your name will appear in the Modified By column.
Click the new Form item. The form that you submitted opens in InfoPath 2010.
Test your form in InfoPath
For information on how to make this work with InfoPath 2003 SP1 or InfoPath 2007, please see link below: