4.4 Script Sleep

The Wait operation is most commonly used by browser-based scripts associated with the synchronous XMLHTTPRequest (XHR) object to force the current script thread to stop execution for a specific amount of time.

Request Body

 <?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>
     <Wait xmlns="http://schemas.microsoft.com/sharepoint/soap/">
       <millisecondsToWait>5000</millisecondsToWait >
     </Wait>
   </soap:Body>
 </soap:Envelope>

Response Body

 <?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>
     <WaitResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/"/>
   </soap:Body>
 </soap:Envelope>