Hi I'm newbe on Infopath
I've hosted a WCF service in my sharepoint site under a folder that I've called _wcf, I've enabled anonymus access.
I can see my service working, and also I can create a connection from infopath to the service. But when opening the form and try to use the adapter It logs this exception into SharePoint log:
07/31/2008 17:24:28.85 w3wp.exe (0x0F80) 0x1120 Forms Server Forms Services Data Objects 13zh Exception System.Net.WebException: The remote server returned an error: (500) Internal Server Error. at System.Net.HttpWebRequest.GetResponse() at Microsoft.Office.InfoPath.Server.SolutionLifetime.WebServiceHelper.GetResponseHelper(WebRequest request, DataAdapterTimer dataAdapterTimer, DataAdapterCredentials credentials, Stopwatch timer, ExecWebRequestExceptionState state, String adapterName, Boolean isQuery) at Microsoft.Office.InfoPath.Server.SolutionLifetime.WebServiceHelper.ExecWebRequestSync(XPathNavigator inputSubDOM, Boolean[] inputUseDataset, XPathNavigator resultsSubDOM, Boolean resultUseDataset, XPathNavigator errorsSubDOM, Uri serviceUrl, Uri soapAction, Int64 timeOutMillisec, Solution solution, Document document, String name, Boolean isQuery, DataAdapterTimer dataAdapterTime... 18efae18-b80e-4a2d-b85b-53c6ea705a71
07/31/2008 17:24:28.85* w3wp.exe (0x0F80) 0x1120 Forms Server Forms Services Data Objects 13zh Exception ...r, DataAdapterCredentials credentials, Boolean useDcl, Boolean useProxy, Boolean useSelf) 18efae18-b80e-4a2d-b85b-53c6ea705a71
07/31/2008 17:24:28.86 w3wp.exe (0x0F80) 0x1120 Forms Server Forms Services Data Objects 7tfk Medium Data adapter failed during OnLoad: The remote server returned an error: (500) Internal Server Error. Access is denied. 18efae18-b80e-4a2d-b85b-53c6ea705a71
07/31/2008 17:24:28.86 w3wp.exe (0x0F80) 0x1120 Forms Server Forms Services Runtime - Data C 82fy Warning The following query failed: GetOrganizationsSharePoint (User: MOSSDEV\administrator, Form Name: ContractManagement, IP: , Request: http://moss01:40000/_layouts/FormServer.aspx?XsnLocation=http://moss01:40000/FormServerTemplates/ContractManagement.xsn&SaveLocation=http://moss01:40000/Contracts&Source=http://moss01:40000/Contracts/Forms/AllItems.aspx&DefaultItemOpen=1, Form ID: urn:schemas-microsoft-com:office:infopath:ContractManagement:-myXSD-2008-07-23T19-59-12, Type: DataAdapterException, Exception Message: The remote server returned an error: (500) Internal Server Error. Access is denied. The remote server returned an error: (500) Internal Server Error.) 18efae18-b80e-4a2d-b85b-53c6ea705a71
I have the development server (included in visual studio) running as well in which i hosted the service. and in here the service works.
Now, how can this happen, what I'm missing?
other question is how do i know which is the sharepoint context, web or Url. where the connection was first originated??