钍下面的代码是给“Microsoft.SharePoint.SoapServer.SoapServerException”试图打电话的时候走走Microsoft.SharePoint.SoapServer.SoapServerException“SharePoint列表服务
public class SP_Access
{
ListsSoapClient _proxy;
XElement _lists;
public SP_Access()
{
_proxy = new ListsSoapClient();
//authenticcation
_proxy.ClientCredentials.Windows.ClientCredential = new System.Net.NetworkCredential();
//Define the parameters for the service call
XElement query = new XElement("Query");
XElement queryOptions = new XElement("QueryOptions");
XElement viewFields = new XElement("ViewFields",
new XElement("FieldRef", new XAttribute("Name", "Employer")),
new XElement("FieldRef", new XAttribute("Name", "Address")));
_lists = _proxy.GetListItems("Search Files",
null,
query,
viewFields,
null,
queryOptions,
null);
}
}
有什么不对的代码,还是应该我需要更改任何配置。在客户端或服务器端。 谢谢。
处理后也出现同样的错误。我没有在我的机器上安装sharepoint,有没有这样做的错误或错误处理? – Flowerking