Hello,
I'm trying to connect to a web service method hosted in Sharepoint . When i did it from the program i'm allow to get result cut when i do it on FormEvents_Loading method, it doesnt give me any result but unfortuantely it doesn´t give any error too.
FormEvents_Loading code
public void FormEvents_Loading(object sender, LoadingEventArgs e)
{
WebServiceConnection connection= (WebServiceConnection)this.DataConnections["getAttachs"];
XmlDocument inputDoc = new XmlDocument();
XmlDocument outputDoc = new XmlDocument();
XmlDocument errorDoc = new XmlDocument();
// Create the XPathNavigator objects for the documents
XPathNavigator inputNav = inputDoc.CreateNavigator();
XPathNavigator outputNav = outputDoc.CreateNavigator();
XPathNavigator errorNav = errorDoc.CreateNavigator();
connection.Execute(inputNav, outputNav, errorNav);
XPathNodeIterator outIterator = outputNav.CreateNavigator().Select("/dfs:myFields/dfs:dataFields/ns1:getAttachsResponse/ns1:getAttachsResult/ns1:string", NamespaceManager);
}
outIterator.count always return 0 value ,so it seems that it never fills a iterator.
Someone have any idea that why happens this?
Thanks,
Regards