GetListItem Through Soap
-
06-02-2021 - |
Frage
I tried to get list item through soapUI program.
My request
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:soap1="http://schemas.microsoft.com/sharepoint/soap/">
<soap:Header/>
<soap:Body>
<soap1:GetListItems>
<!--Optional:-->
<soap1:listName>Container Inspection Report</soap1:listName>
<!--Optional:-->
<soap1:viewFields>
<FieldRef Name="ID" />
<FieldRef Name="Title" />
</soap1:viewFields>
</soap1:GetListItems>
</soap:Body>
</soap:Envelope>
the response
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<soap:Code>
<soap:Value>soap:Receiver</soap:Value>
</soap:Code>
<soap:Reason>
<soap:Text xml:lang="en">Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.</soap:Text>
</soap:Reason>
<detail>
<errorstring xmlns="http://schemas.microsoft.com/sharepoint/soap/">Element <ViewFields> of parameter viewFields is missing or invalid.</errorstring>
<errorcode xmlns="http://schemas.microsoft.com/sharepoint/soap/">0x82000000</errorcode>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
second question how can I know my authentication NTLM?
My sharepoint version is office 365
Lösung
Question 1:
When using SharePoint Online, you should be using REST, not SOAP. REST is more modern and supports authentication scenarios such as those required by SharePoint Online, that is: claims-based authentication. Furthermore it’s responses are returned as JSON objects which do not carry the excessive overhead of XML, and therefore tend to return quicker responses.
Regarding your second question:
There is absolutely no NTLM authentication in SharePoint online. NTLM = NT LAN Manager
LAN as in Local Area Network.
SharePoint Online uses claims-based authentication. See here for description of the difference