W
Wozza
Does anybody know how to use this method to update data using a web service
call ....
I am getting the following error!
"Exception from HRESULT: 0x8004304D"
at
Microsoft.Office.InfoPath.Internal.MomExceptionHelper.ExecuteDataConnectionAction(OMCall
d)
at
Microsoft.Office.InfoPath.Internal.WebServiceConnectionHost.Execute(XPathNavigator
input, XPathNavigator output, XPathNavigator errors)
at InfoPathBook.FormCode.btnSubmit_Clicked(Object sender,
ClickedEventArgs e)
My code is ...
// Create XmlDocuments.
XmlDocument inputDocument = new XmlDocument();
XmlDocument outputDocument = new XmlDocument();
XmlDocument errorsDocument = new XmlDocument();
// Create XPathNavigator objects for documents.
XPathNavigator inputNav = this.MainDataSource.CreateNavigator();
XPathNavigator outputNav = outputDocument.CreateNavigator();
XPathNavigator errorsNav = errorsDocument.CreateNavigator();
WebServiceConnection wsc =
(WebServiceConnection)this.DataConnections["MyServicePUT"];
Trace.WriteLine(inputNav.OuterXml);
wsc.Execute(inputNav, outputNav, errorsNav);
call ....
I am getting the following error!
"Exception from HRESULT: 0x8004304D"
at
Microsoft.Office.InfoPath.Internal.MomExceptionHelper.ExecuteDataConnectionAction(OMCall
d)
at
Microsoft.Office.InfoPath.Internal.WebServiceConnectionHost.Execute(XPathNavigator
input, XPathNavigator output, XPathNavigator errors)
at InfoPathBook.FormCode.btnSubmit_Clicked(Object sender,
ClickedEventArgs e)
My code is ...
// Create XmlDocuments.
XmlDocument inputDocument = new XmlDocument();
XmlDocument outputDocument = new XmlDocument();
XmlDocument errorsDocument = new XmlDocument();
// Create XPathNavigator objects for documents.
XPathNavigator inputNav = this.MainDataSource.CreateNavigator();
XPathNavigator outputNav = outputDocument.CreateNavigator();
XPathNavigator errorsNav = errorsDocument.CreateNavigator();
WebServiceConnection wsc =
(WebServiceConnection)this.DataConnections["MyServicePUT"];
Trace.WriteLine(inputNav.OuterXml);
wsc.Execute(inputNav, outputNav, errorsNav);