Hi To all I create a list form using infopath and I was trying to connect to a custom webservice inside my form. I receiving the following error details
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:9e8ce104-bb68-4880-81cf-f1736c43b76b
I tried to search this error in my SharePoint log and this is what I got
| Data adapter failed during OnLoad: The remote server returned an error: (401) Unauthorized. |
| The following query failed: GetUserByBranchRole 2 (User: SMPRIME\Billy.peralta, Form Name: Template, IP: , Connection Target: http://homeuat.sm.ph/sites/SMITH/Data Connection/GetUserByBranchRole.udcx, Request: http://homeuat.sm.ph/sites/SMITH/Lists/testForWebService/AllItems.aspx, Form ID: urn:schemas-microsoft-com:office:infopath:list:-AutoGen-2012-01-02T02:44:40:15Z Type: DataAdapterException, Exception Message: The remote server returned an error: (401) Unauthorized. The remote server returned an error: (401) Unauthorized.) |
Using the Data Connection that was provided in my Infopath I receive the error above
but when I try to add the following code below in my infopath, I dont receive any error. Can you please help me. In my other server I dont need to put the code below for my infopath form to work. Maybe you know what setting do I need to change in my CA to make this thing work
<udc:Authentication>
<udc:UseExplicit CredentialType="NTLM">
<udc:UserId>DOMAIN\test.user1</udc:UserId>
<udc:Password>12313d2</udc:Password>
</udc:UseExplicit>
</udc:Authentication>
I already check if this is an loopback issue but based on my registry the loopback is already disabled