Infopath ile UserProfileService.asmx ve UserGroup.asmx web servislerine bağlanan form tasarladım.
Lokalde düzgün çalışırken test sunucunda çalışmayıp, aşağıdaki hata verdi.
Oluşan hata:
An error occurred querying a data source.
Click OK to resume filling out the form. You may want to check your form data for errors.
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:ae3b6f03-b329-42cc-b337-59567e406ddf
The following query failed: GetUserProfileByName (User: ISHAKNETWORKS\ishak.kulekci, Form Name: dataownerform export, IP: , Connection Target: , Request: http://testsharepoint.ishak.com.tr/TestTeamSite1/Lists/DataOwner/AllItems.aspx, Form ID: urn:schemas-microsoft-com:office:infopath:dataownerform-export:-dataFormSolution Type: DataAdapterException, Exception Message: The remote server returned an error: (401) Unauthorized. The remote server returned an error: (401) Unauthorized.)
Bunun için test sunucusunda registry'de DisableLoopback ayarı yaptım, sorun düzeldi.
Nasıl yapıldığını kaynak linklerden yapabilirsiniz.
Ayrıca infopath formunu Windows authentication olarak ayarlanmış sharepoint web application'da yaptığımı belirteyim. Claim based authentication olduğunda sorun düzelmiyor olabilir.
Kaynak:
http://sharepointconnoisseur.blogspot.com/2011/04/how-to-resolve-401-unauthorized-error.html http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/544a81dc-214a-4caf-aa42-fc9dec796882/
Başka çözümler de belirtilmiş fakat denemedim, belki deneyebilirsiniz:
c:\windows\system32\drivers\etc\hosts.
and add an entry on each server pointing to itself. For example,
if you have two web servers, Server1 on 192.168.0.10 and Server2 on
192.168.0.11 your host file entry on Server1 would be:
192.168.0.10 your.sharepoint.address
and on Server2:
192.168.0.11 your.sharepoint.address
Pasted from <http://gavinmckay.wordpress.com/2011/03/29/sharepoint-2010-web-services-401-unauthorised-error-from-infopath-forms-services/>
---
Hi all
this error occurred when info path
form can't connect with users profile (XML web service doesn't work) to prevent
this you should add a new URL path in the alternate access mapping.
you should set your computer name
as default Zone and in the internet zone use the ip address.
EX
Pasted from <http://www.infopathdev.com/forums/p/7676/73513.aspx>
---
Pasted from <http://www.harbar.net/archive/2009/07/02/disableloopbackcheck-amp-sharepoint-what-every-admin-and-developer-should-know.aspx>
---
When you connect
to a Web service by using an InfoPath 2010 form that contains sandboxed code,
the data that is returned is incorrect, or you receive an error message
Pasted from <http://support.microsoft.com/kb/981684>
--
Hiç yorum yok:
Yorum Gönder