We have designed an InfoPath form which is browser enabled and we are trying to call OOB web service named –GETUSERPROFILEBYNAME so as soon as the forms loads then it has to show the name of logged-in user but it’s failing every time and giving the following error message:
An error occurred while trying to connect to a Web service.
An entry has been added to the Windows event log of the server.
Log ID: 5566
Correlation ID: 00421dc6-3182-4d05-bcb0-24c50383598d
We have checked the logs based on this correlation id and got the following message:Data adapter failed during OnLoad: Unable to connect to the remote server
Topology:This is a development environment which has only one server i.e. WFE
Also- we have already added the site inside the host file.
We need your inputs by which we can resolve this issue as soon as possible, Thank you.