Moss를 사용시 WebServiceConnection class 사용법
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);
http://www.developerfood.com/how-to-use-webserviceconnection-to-call-webservoce/microsoft-public-infopath/e6344bd5-bc13-4b74-93eb-318e419b6ae0/article.aspx
'.NET > MOSS' 카테고리의 다른 글
InfoPath 2007 (0) | 2007.09.13 |
---|---|
Microsoft Office SharePoint Server 2007 개요 (1) | 2007.09.11 |
Business Data Catalog 왜 필요한가? (1) | 2007.09.11 |
Microsoft Office SharePoint Server 2007의 본질 (1) | 2007.09.03 |
WebServiceConnection ==>MOSS (1) | 2007.08.31 |
SharePoint Server 2007 SDK: Software Development Kit => Download (1) | 2007.08.30 |
중대한 위치 축하!경이롭 위치!