4.15 SOAP Fault

Any of the Voice Mail Settings Web Service Protocol operations can return a SOAP fault. A SOAP fault element is used to carry error and/or status information within a SOAP message when there is an incorrectly formatted request or where there are configuration failures. The following example shows a SOAP fault message in response to an invalid PlayOnPhone operation request.

The following is an invalid PlayOnPhone operation request.

 <?xml version="1.0" encoding="utf-8"?>
 <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
     <PlayOnPhone xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
       <entryId>INVALID_ENTRY_ID</entryId>
       <DialString>12345</DialString>
     </PlayOnPhone>
   </soap:Body>
 </soap:Envelope>

The following is the SOAP fault response to the invalid PlayOnPhone operation request.

 <?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>
     <soap:Fault>
       <faultcode>a:InvalidObjectIdException</faultcode>
       <faultstring>The object identifier isn't valid</faultstring>
       <detail>
         <ExceptionType xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">InvalidObjectIdException</ExceptionType>
       </detail>
     </soap:Fault>
   </soap:Body>
 </soap:Envelope>