Export (0) Print
Expand All

4.5 SetUserOofSettings Failure Response

The following example shows an unsuccessful response to a SetUserOofSettings 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:Header>
    <t:ServerVersionInfo MajorVersion="8" MinorVersion="1" MajorBuildNumber="240" MinorBuildNumber="5" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" />
  </soap:Header>
  <soap:Body>
    <SetUserOofSettingsResponse xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
      <ResponseMessage ResponseClass="Error">
        <MessageText>The scheduled Out of Office duration is not valid.</MessageText>
        <ResponseCode>ErrorInvalidScheduledOofDuration</ResponseCode>
        <DescriptiveLinkKey>0</DescriptiveLinkKey>
        <MessageXml>
          <ExceptionType xmlns="http://schemas.microsoft.com/exchange/services/2006/errors">Microsoft.Exchange.InfoWorker.Common.OOF.InvalidScheduledOofDuration</ExceptionType>
          <ExceptionCode xmlns="http://schemas.microsoft.com/exchange/services/2006/errors">158</ExceptionCode>
        </MessageXml>
      </ResponseMessage>
    </SetUserOofSettingsResponse>
  </soap:Body>
</soap:Envelope>
Show:
© 2014 Microsoft