代码之家  ›  专栏  ›  技术社区  ›  1800 INFORMATION

如何实现sharepoint列表web服务

  •  0
  • 1800 INFORMATION  · 技术社区  · 17 年前

    我想实现一个使用与 Lists web service in sharepoint . 我不想通过sharepoint运行此操作。什么是一个好的方式开始在这个?

    我试图使用wsdl.exe工具来生成一些包装类,但是生成的包装器似乎在结构参数上进行了punted,并将它们指定为XML。例如,下面是为 GetList

    ...

    /// <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);   
    }
    
    1 回复  |  直到 17 年前
        1
  •  0
  •   Daniel Revell    17 年前

    这可能是一个nieve的答案,因为我不太擅长创建自己的web服务,但我知道它们不总是返回xml吗?或者更确切地说是肥皂