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>设备信息</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 <ViewFields> of parameter viewFields is missing or invalid.
{http://schemas.microsoft.com/sharepoint/soap/}errorcode:0x82000000