Design a form based on a Web service

Microsoft Office InfoPath 2003

Show All Show All

Design a form based on a Web service

When you design a new form that is connected to a Web service, Microsoft Office InfoPath 2003 builds a data structure for your form based on that Web service. The resulting form can then be used to submit data to and query the Web service. You can work with the form in many of the same ways as when you design a new, blank form— for example, you can insert and lay out controls, add or remove data validation and conditional formatting, and publish the form.

You can design forms that receive data from a Web service, submit data to a Web service, or do both. If you are designing a form that does both, you can specify different Web services for receiving and submitting data.

Note  InfoPath cannot connect to a Web service that uses remote procedure call (RPC) encoding. Only document literal encoding is supported.

ShowDesign a form that submits data to a Web service

ShowDesign a form that receives data from a Web service

ShowDesign a form that receives data from and submits data to a Web service

Notes

  • When you design a form that is connected to a Web service, the resulting data source consists of query fields and data fields. Query fields should be used to create controls that allow users to enter values that they can query the Web service for. Data fields are filled in with the query results, and also allow users to edit existing data and add new data.
  • By default, InfoPath adds a Run Query button to a form that receives data from a Web service. When clicked, this button queries the Web service based on the values in the form's query fields.
  • By default, InfoPath enables the Submit command on the File menu for a form that can submit data to a Web service. Clicking the command allows users to submit the data in their completed form to the Web service.
  • Because the data structure for the form must match the data structure of the Web service it is connected to, you cannot automatically create the data source for the form when inserting controls. In addition, you cannot modify existing fields or groups in the form's data source, and you can only add fields or groups to the root group in the form's data source.
  • The information in this topic may not apply if you are working with a form designed using Microsoft Office InfoPath 2003 without the service pack installed. Learn more