I am connecting to REST Web Service through InfoPath 2010 and when I publish the form i am getting below error :

A query to retrieve form data cannot be completed because this action would violate cross-domain restrictions.

If this form template is published to a SharePoint document library, cross-domain access for user form templates must be enabled under InfoPath Forms Services in SharePoint Central Administration, and the data connection settings must be stored in a UDC file in a data connection library in the same site collection.

If this is an administrator-approved form template, the security level of the form must be set to full trust, or the data connection settings must be stored in a UDC file by using the Manage data connection files option under InfoPath Forms Services in SharePoint Central Administration.

An entry has been added to the Windows event log of the server.

Log ID:6932
Correlation ID:607521b0-cef5-452f-9814-6edb7ca1bfb3"

I have these settings in Central Administration Alloww cross domian access and Allow user form templates to use authentication information contained in data connection files checked. And also I have udcx file in site.

Can any one suggest solution for this.

enter image description here

有帮助吗?

解决方案 2

Cross domain issues occur if we are trying to use the the web service which don't have access with the domain where we are trying to implement the InfoPath. Make sure if the user has permission to the service and domain he is accessing to. Host the web service in the current server and it accesses through the service. But need to remember these steps while making data connection in InfoPath to REST Web Service I have updated the steps in the following link please follow them in case of reference to others who face these issues.

Steps to follow adding REST web Service as data connection in InfoPath

其他提示

If you have load balanced Web front ends you can try these suggestions:

  • Under InfoPath Form Options > Security and Trust ensure the "Automatically determine security level" in unticked
  • You mentioned the URL points to 2 different servers, if they are load balanced, ensure that there is a host entry on each server pointing to itself, this is because the request could bounce between servers and loose context

https://social.msdn.microsoft.com/Forums/en-US/eeaafd97-75cd-4875-bb2b-faa6647c61e0/infopath-forms-cross-domain-issue?forum=sharepointcustomizationprevious (from MSDN)

许可以下: CC-BY-SA归因
scroll top