Creating the InfoPath Document
InfoPath documents require an InfoPath template (.xsn
), designed in InfoPath, before they can create an InfoPath form template and connect it to a Web service for data retrieval and submission. Follow these steps to create an InfoPath template that will connect to the Web service we just created:
1. Launch Microsoft InfoPath 2003.
2. On the left-hand side of the Fill Out a Form window, select Design a Form. If the Fill Out a Form window is not open, select File | Design a Form.
3. From the Task Pane on the right-hand side, select New from Data Connection.
4. In the Data Connection Wizard, select Web Service and click Next.
5. Select Receive and submit data and click Next.
6. Enter the Web service URL as http://localhost/McmsAuthoringWebService/authoring.asmx and click Next.
7. For the Retrieve operation we must select the GetPosting operation and click Next.
8. Click Next again. We use the same Web service address for the submit functionality, so again...