我試圖使用SharePoint 2013 Web服務(GetListItems
)。SharePoint Web服務 - GetListItems
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.microsoft.com/sharepoint/soap/">
<soapenv:Header/>
<soapenv:Body>
<soap:GetListItems>
<soap:listName>OnLineFormsList</soap:listName>
<soap:query>
<Where>
<Eq>
<FieldRef Name="Item Type" />
<Value Type="String">Personal</Value>
</Eq>
</Where>
</soap:query>
<viewFields>
<FieldRef Name="Process ID" />
<FieldRef Name="Title" />
<FieldRef Name="Description" />
</viewFields>
<soap:rowLimit>50</soap:rowLimit>
<queryOptions xmlns:SOAPSDK9=
"http://schemas.microsoft.com/sharepoint/soap/" >
<QueryOptions/>
</queryOptions>
<soap:webID></soap:webID>
</soap:GetListItems>
</soapenv:Body>
</soapenv:Envelope>
我想從SoapUI這個。我收到以下錯誤消息:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.</faultstring>
<detail>
<errorstring xmlns="http://schemas.microsoft.com/sharepoint/soap/">Element <Query> of parameter query is missing or invalid.</errorstring>
<errorcode xmlns="http://schemas.microsoft.com/sharepoint/soap/">0x82000000</errorcode>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
任何人都可以指出如何正確使用此服務?
列表列:
查看:所有項目(默認的)
我跟着這個鏈接上的說明:https://msdn.microsoft.com/en-us/library/lists.lists.getlistitems(v=office.12).aspx
您是否嘗試過使用驗證'ALT + v'組合鍵或右鍵單擊並驗證在soapUI的編輯要求?錯誤信息在迴應中說問題'元素的參數查詢丟失或無效' –
Rao