【问题标题】:How to implement a sharepoint lists webservice如何实现共享点列表 web 服务
【发布时间】: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


    【解决方案1】:

    这可能是一个顽固的答案,因为我不太精通创建自己的 web 服务,但他们不是总是要返回 xml 吗?或者更确切地说是 SOAP

    【讨论】:

    • 是的。我认为我正在寻找的是一组包装类,它们将使生成 XML 更容易
    猜你喜欢
    • 1970-01-01
    • 2011-02-15
    • 2011-12-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多