locked
sharepoint 2010 :errorstring:Element <ViewFields> of parameter viewFields is missing or invalid. RRS feed

  • Question

  • visit sharepoint 2010 by webservice , request xml follow like this :

    <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <GetListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">
    <listName>&#x8BBE;&#x5907;&#x4FE1;&#x606F;</listName>
    <viewName>{591CDFB2-BA2F-4858-9C73-9BD4D868821B}</viewName>
    <query/>
    <viewFields>
    <FieldRef Name="ID" xmlns=""/>
    </viewFields>
    <rowLimit>1000</rowLimit>
    </GetListItems>
    </soapenv:Body>
    </soapenv:Envelope>

    but throws exception :

    AxisFault
     faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
     faultSubcode:
     faultString: Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.
     faultActor:
     faultNode:
     faultDetail:
        {http://schemas.microsoft.com/sharepoint/soap/}errorstring:Element &lt;ViewFields&gt; of parameter viewFields is missing or invalid.
        {http://schemas.microsoft.com/sharepoint/soap/}errorcode:0x82000000

    • Moved by Jack-Gao Friday, March 23, 2012 1:17 AM It is SharePoint2010 (From:SharePoint - InfoPath Forms Services (pre-SharePoint 2010))
    Thursday, March 22, 2012 8:50 AM

Answers