Thanks to our customers, they escalated to Microsoft and the API change seems to be reverted. I verified our product is working fine now.
Thanks for your comment to sort out the situation!
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
We're using SOAP API to get SharePoint Online data. I know SOAP API is deprecated but it works for a long time as same as SharePoint (On-Prem) servers.
From this weekend, SiteData.asmx does not return any resources. Was there any update about this SOAP API? We didn't change any configurations from last week.
I can call other API as expected, such as Lists.asmx. Also I confirmed the entire flow by testing my SharePoint (On-Prem) server.
We call SiteData.asmx API as follows.
Request:
Response:
If someone can provide any response for this matter promptly, it would be appreciated. Thanks in advance.
Thanks to our customers, they escalated to Microsoft and the API change seems to be reverted. I verified our product is working fine now.
Thanks for your comment to sort out the situation!
I have the same issue and I didn't find any changelog/release note talking about this new behavior.
Hi @Sayaka Kuroki ,
Per my test ,We can use the following sample to get content
POST /_vti_bin/SiteData.asmx HTTP/1.1
Host: xxx.sharepoint.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://schemas.microsoft.com/sharepoint/soap/GetContent"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetContent xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<objectType>VirtualServer or ContentDatabase or SiteCollection or Site or List or Folder or ListItem or ListItemAttachments</objectType>
<objectId>string</objectId>
<folderUrl>string</folderUrl>
<itemId>string</itemId>
<retrieveChildItems>boolean</retrieveChildItems>
<securityOnly>boolean</securityOnly>
<lastItemIdOnPage>string</lastItemIdOnPage>
</GetContent>
</soap:Body>
</soap:Envelope>
And it will return like following
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetContentResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<GetContentResult>string</GetContentResult>
<lastItemIdOnPage>string</lastItemIdOnPage>
</GetContentResponse>
</soap:Body>
</soap:Envelope>
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
I confirm that it doesn't work on xxx:
query:
POST /_vti_bin/SiteData.asmx HTTP/1.1
Host: xxx.sharepoint.com
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://schemas.microsoft.com/sharepoint/soap/GetContent"
Host: xxx.sharepoint.com
Content-Length: 391
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetContent xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<objectType>Site</objectType>
</GetContent>
</soap:Body>
</soap:Envelope>
response:
<?xml version="1.0" encoding="utf-8"?>
<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>
<GetContentResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<GetContentResult />
</GetContentResponse>
</soap:Body>
</soap:Envelope>