SharePoint Events

  5/13/2013 - Conference: SharePoint Summit 2013
  5/21/2013 - Webcast: SharePoint 2013 and ECM: Content Migration and Storage
  5/22/2013 - Webcast: Managing CAD in SharePoint
  5/23/2013 - Webcast: SharePoint Document Automation and E-Forms for Financial Services
  5/24/2013 - Webcast: What's New in Search for SharePoint 2013

 SharePoint Videos

  Why SharePoint 2013
  SharePoint 2013 Launch
  SharePoint 2013 Migration and Governance
  SharePoint 2013 and Enterprise Content Management
  Top Benefits of SharePoint 2013
  What's New in Business Intelligence in Office and SharePoint 2013
  SharePoint and Office 2013 Integration
  SharePoint 2013 Infrastructure Preview
  SharePoint, Lync, and, Exchange in the Cloud with Office 365
  Advanced Reporting in SharePoint with Microsoft Power View

 Archives

Opening SharePoint Links in a new windowUse SHIFT+ENTER to open the menu (new window).
Mail Enabled Lists vs. The Missing Windows 2008 POP3/IMAP Server Use SHIFT+ENTER to open the menu (new window).
7 Tools for SharePoint DevelopersUse SHIFT+ENTER to open the menu (new window).
Public Facing Masterpage TechniquesUse SHIFT+ENTER to open the menu (new window).
How to Quickly Deploy and Activate a Timer Service to Your Site CollectionUse SHIFT+ENTER to open the menu (new window).
Custom SharePoint Master Page Feature with WSP BuilderUse SHIFT+ENTER to open the menu (new window).
Date Math with InfoPathUse SHIFT+ENTER to open the menu (new window).
Enterprise Search Tricks and Tips Part 1Use SHIFT+ENTER to open the menu (new window).
Populating Word Documents With SharePoint Data. Try The DIP!Use SHIFT+ENTER to open the menu (new window).
Programmatic Deep Dive into Blank SharePoint Lookup ColumnsUse SHIFT+ENTER to open the menu (new window).
1 - 10 Next
Connecting a WCF Service to an InfoPath Form

By: Kathryn Bartlett

When you are connecting a WCF Service to an InfoPath form and happen to come across the following error:

SharePoint_Blog_Connecting_a_WCF_Service_to_an_InfoPath_Form

To resolve this, you need to do the following two steps:

1. Enable cross-domain access for InfoPath Forms

2. Store the data connection in a UDC file on your SharePoint site.

Enabling Cross-Domain Access

Go to “General Application Settings” in Central Administration and click on “Configure InfoPath Forms Services”.

SharePoint_Blog_Connecting_a_WCF_Service_to_an_InfoPath_Form

Check “Allow cross-domain data access for user form templates that use connection settings in a data connection file”

SharePoint_Blog_Connecting_a_WCF_Service_to_an_InfoPath_Form

Hit OK.

Storing the Data Connection in a UDC File

First, create a Data Connection Library on your SharePoint site.

Copy the URL of this library up to, but not including, the /Forms/AllItems.aspx.

In Infopath, go to your Data Connections, and select your WCF Data Connection.  Click “Convert to Connection File…”

SharePoint_Blog_Connecting_a_WCF_Service_to_an_InfoPath_Form

Enter the URL to your data connection library and append ‘/’ followed by a file name of your choice with extension udcx.  Leave the Connection link type as the default and hit OK.

SharePoint_Blog_Connecting_a_WCF_Service_to_an_InfoPath_Form

Now go to your data connection library, select the “Approve/Reject” option from the dropdown of your file, and select “Approve”.

Publish your form and it should open with no problem.

By: Kathryn Bartlett

        

Comments

There are no comments yet for this post.
Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Your Name *


e-mail address *


Website (optional)


Comment *


Attachments

 Subscribe

  GigWerks RSS  Gig Werks Mailing List 

 Contact Us

 Connect

 Resources

  On Demand SharePoint Webcast Recordings
  Upcoming Webinars
  SharePoint Resources
  Business Intelligence Resources
  Gig Werks Website



©2009 Gig Werks. All rights reserved. Privacy Policy