Kit Kai's Tech Blog

Blog about SharePoint

This Blog

Syndication

Search

Tags

News



  • Want to be notified when new posts are available? Click the icon below for more information on how to subscribe.

    Blog Flux MapStats: Stats and Counter for Kit Kai's Tech Blog Subscribe to Kit Kai's Tech Blog

    Locations of visitors to this page Add to Technorati Favorites

Community

Email Notifications

Archives

Sharepoint / CMS Blogs

MVPs', Leads' & RDs' Blogs

Singapore Usergroups

Overseas Usergroups

About Me

Consuming Web Services in InfoPath Part 2: Setting Up the Data Connection

Now, we are going to set up data connections for our form. Just in case you do not know why we should use Data Connections, here is an abstract from MSDN about the benefits of using Data Connection

[Source]

Using a UDC file located in a data connection library has the following benefits:

  • Form designers can configure form template data connections that will work in both the InfoPath client and InfoPath Forms Services.

  • Form designers can publish a form template to multiple servers and have different data connection settings for each server without modifying the data connection information in the form template.

  • Form designers can publish a domain security form template that can access data sources in a different domain.

  • Administrators can redirect data connections without modifying form templates that reference the UDC file.

  • Administrators can designate which connections are approved for cross-domain access.

  • Administrators can publish data connections on a single server which can be shared across multiple servers.

 [/Source]

 To create a data connection,

  1. Fire up InfoPath 2007 and design a new form
  2. Click on [Tools] -> [Data Connections]
  3. Click on [Add]
  4. Select [Create a new connection to:] and [Receive data]
  5. Select [Web service]
  6. Enter the url of your web service
  7. Select [GetPrice]
  8. If you want, you can set the default value now.
  9. At the last screen, give your webservices a name (which I'm calling mine MetalExchange), and uncheck [Automatically retrieve data when form is opened]

 

  1. Next, convert your data connection by clicking [Convert]
  2. Specify the url of a data connection library, and select either one... (I don't think it matters here, since the data connection file is still saved to the data connection library, and not the one in central admin)
  3. Click on [Ok]
  4. Click on [Close]
Published Monday, July 09, 2007 9:37 PM by kitkai

Comments

# Four part consuming web services in InfoPath article@ Tuesday, July 10, 2007 12:40 AM

I've quickly put together a 4 part series to illustrate how to consume web services in your browser-enabled