none
用VBA里使用wsm_GetListItems获取WSS3.0的LIST时提示错误. RRS feed

  • 问题

  • 详细代码如下:
    Dim ws As New clsws_Lists
    Dim Mlist As MSXML2.IXMLDOMNodeList
    Dim xdoc As New DOMDocument
    Dim query As IXMLDOMNodeList
    Dim queryOpions As IXMLDOMNodeList
    Dim viewfields As IXMLDOMNodeList
    Dim rowLimit As String

    xdoc.loadXML ("<Document><Query /><ViewFields /><QueryOptions /></Document>")

    Set query = xdoc.getElementsByTagName("Query")
    Set viewfields = xdoc.getElementsByTagName("ViewFields")
    Set queryOptions = xdoc.getElementsByTagName("QueryOptions")
     
    Set Mlist = ws.wsm_GetListItems("list", "", query, viewfields, "", queryOpions, "")

    出现运行时错误: Exception of type 'Microsoft.Sharepoint.SoapServer.SoapServerException' was thrown.
    请教各位我的代码是哪个地方出了问题呢?

    2009年9月24日 9:38

全部回复