I am getting the following error while trying to access a custom webservice from an InfoPath form to fetch some data. I have already gone through the actions described in the error message, but the problem still persists.
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.
A query to retrieve form data cannot be completed because this action would violate cross-domain restrictions.