Building a complex browser enabled form that has multiple Data Connections to the UpdateListItems web service for the same site. (2 Different lists, 3 different connections.)
Retrieve Data Connection - SharePoint List
Submit Data Connection - Web Service w/ CAML query (programatically generated) - Updates Existing Item
Submit Data Connection - Web Service w/ CAML query (programatically generated) - Creates New Item
(At first, each of these data connections were created through the GUI in InfoPath. After some researching, I switched these data connections to UDC's stored on the same SharePoint site.)
The form is fully trusted. Published to a SharePoint server with InfoPath Forms Services.
All 3 web service connections work flawlessly while in 'Preview' mode. Once it's published, the two submission web services return with an exception.
Thrown Error:
System.Net.WebException: The remote server returned an error: (403) Forbidden.
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 dataAdapterTimer, DataAdapterCredentials credentials, Boolean useDcl, Boolean useProxy, Boolean useSelf)
An entry has been added to the Windows event log of the server.
Log ID:5337
Corresponding SharePoint Log Entries:
08/05/2009 12:55:00.47 w3wp.exe (0x0B98) 0x18E4 Forms Server Forms Services Data Objects 13zh Exception System.Net.WebException: The remote server returned an error: (403) Forbidden. 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 dataAdapterTimer, DataAdapt... e66d480a-d5df-4812-b417-4622655454a4
08/05/2009 12:55:00.47* w3wp.exe (0x0B98) 0x18E4 Forms Server Forms Services Data Objects 13zh Exception ...erCredentials credentials, Boolean useDcl, Boolean useProxy, Boolean useSelf) e66d480a-d5df-4812-b417-4622655454a4
08/05/2009 12:55:00.47 w3wp.exe (0x0B98) 0x18E4 Forms Server Forms Services Runtime - Busine 82g6 Warning Business logic failed due to an exception. (User: XXXX\xxxxxx, Form Name: FormName, IP: , Request: http://sharepointserver/_layouts/Postback.FormServer.aspx, Form ID: urn:schemas-microsoft-com:office:infopath:FormName:-myXSD-2009-07-02T13-36-04, Type: WebException, Exception Message: The remote server returned an error: (403) Forbidden. The remote server returned an error: (403) Forbidden.) e66d480a-d5df-4812-b417-4622655454a4
08/05/2009 12:55:00.49 w3wp.exe (0x0B98) 0x18E4 Forms Server Forms Services Object Model 7tge Assert Exception thrown from business logic event listener StackTrace: at Microsoft.Office.InfoPath.Server.DocumentLifetime.OMExceptionManager.CallFormCodeWithExceptionHandling(UserMessages userMessages, OMCall d) at Microsoft.Office.InfoPath.Server.SolutionLifetime.ButtonFormCode.<>c__DisplayClass2.b__0() at Microsoft.Office.InfoPath.Server.SolutionLifetime.ButtonFormCode.Click(Document document, XPathNavigator container) at Microsoft.Office.InfoPath.Server.DocumentLifetime.EventClick.Play(Document document, BindingServices bindingServices, EventLogProcessor eventLogProcessor) at Microsoft.Office.InfoPath.Server.DocumentLifetime.Event.PlayEvent(Document document, BindingServices bindingServices, EventLogProcessor eventLogProcessor) at Microsoft.Office.InfoPath.Server... e66d480a-d5df-4812-b417-4622655454a4
08/05/2009 12:55:00.49* w3wp.exe (0x0B98) 0x18E4 Forms Server Forms Services Object Model 7tge Assert ....DocumentLifetime.EventLogProcessor.<>c__DisplayClass1.b__0() at Microsoft.Office.InfoPath.Server.DocumentLifetime.EventLogProcessor.ExecuteLog(Int32 expectedEventLogID) at Microsoft.Office.InfoPath.Serv e66d480a-d5df-4812-b417-4622655454a4