【发布时间】:2010-10-15 08:13:13
【问题描述】:
我想实现一个使用与Lists web service in sharepoint 相同接口的网络服务。我不想通过 sharepoint 运行它。有什么好的入门方法?
我尝试使用 wsdl.exe 工具生成一些包装器类,但生成的包装器似乎对结构参数进行了处理,并且只是将它们指定为 XML。例如,下面是为GetList 生成的包装器 - 它应该返回一个包含列表中信息的结构,但它返回的是 XML。怎么回事?
...
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
[System.Web.Services.WebServiceBindingAttribute(Name="ListsSoap", Namespace="http://schemas.microsoft.com/sharepoint/soap/")]
public interface IListsSoap
{
/// <remarks/>
[System.Web.Services.WebMethodAttribute()]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sharepoint/soap/GetList", RequestNamespace="http://schemas.microsoft.com/sharepoint/soap/", ResponseNamespace="http://schemas.microsoft.com/sharepoint/soap/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
System.Xml.XmlNode GetList(string listName);
}
【问题讨论】:
标签: xml web-services sharepoint wsdl list