SOAP Request FindMailboxStatisticsByKeywords return error not implemented, but my version of exchange server is 15.02.0595.003

bonNope 0 Reputation points
2023-10-13T09:57:05.4066667+00:00

i send this soap request to exchange server via ews

<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope">
        <Header xmlns="http://schemas.xmlsoap.org/soap/envelope">
                <RequestServerVersion xmlns="http://schemas.microsoft.com/exchange/services/2006/types" Version="Exchange2013_SP1"></RequestServerVersion>
        </Header>
        <Body xmlns="http://schemas.xmlsoap.org/soap/envelope">
                <FindMailboxStatisticsByKeywords xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
                        <Mailboxes xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
                                <UserMailbox xmlns="http://schemas.microsoft.com/exchange/services/2006/types" Id="existed_guid" IsArchive="false"></UserMailbox>
                        </Mailboxes>
                        <Keywords xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
                                <string>DisplayName</string>
                        </Keywords>
                </FindMailboxStatisticsByKeywords>
        </Body>
</Envelope>

and i got error on exchange server

Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 13.10.2023 12:40:31 
Event time (UTC): 13.10.2023 9:40:31 
Event ID: event_id  Event sequence: 138 
Event occurrence: 1 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/2/ROOT/EWS-1-556416991665368030      Trust level: Full 
    Application Virtual Path: /EWS 
    Application Path: C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\exchweb\EWS\ 
    Machine name: machine-name    Process information:      Process ID: 13564 
    Process name: w3wp.exe 
    Account name: NT AUTHORITY\СИСТЕМА 
 
Exception information: 
    Exception type: NotImplementedException 
    Exception message: Method or operation not implemented.
   в Microsoft.Exchange.Services.DispatchPipe.Ews.EwsServiceHttpHandlerFactory.GetMessageEncoder(MessageVersion messageVersion)
   в Microsoft.Exchange.Services.DispatchPipe.Ews.EwsServiceHttpHandlerFactory.ParseMessage(HttpContext httpContext, Message& message)
   в Microsoft.Exchange.Services.DispatchPipe.Ews.EwsServiceHttpHandlerFactory.UseHttpHandlerFactory(HttpContext httpContext)
   в Microsoft.Exchange.Services.DispatchPipe.Base.HttpHandlerFactoryBase`1.<>c__DisplayClass11_0.<GetHandler>b__1()
   в Microsoft.Exchange.Diagnostics.RequestDetailsLoggerBase`1.TrackLatency(Enum latencyMetadata, Action method)
   в Microsoft.Exchange.Services.DispatchPipe.Base.HttpHandlerFactoryBase`1.<>c__DisplayClass11_0.<GetHandler>b__0()
   в Microsoft.Exchange.Common.IL.ILUtil.DoTryFilterCatch(Action tryDelegate, Func`2 filterDelegate, Action`1 catchDelegate)
   в Microsoft.Exchange.Services.Core.ServiceDiagnostics.SendWatsonReportOnUnhandledException(ICallContext callContext, Action methodDelegate)
   в Microsoft.Exchange.Services.DispatchPipe.Base.HttpHandlerFactoryBase`1.GetHandler(HttpContext httpContext, String requestType, String url, String pathTranslated)
   в System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   в System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   в System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 
 
Request information: 
    Request URL: https://my-server/EWS/Exchange.asmx      Request path: /EWS/Exchange.asmx 
    User host address: tttt::dddd:aaaa:acc9:fbfbfFull      User: domain\user      Is authenticated: True 
    Authentication Type: NTLM 
    Thread account name: NT AUTHORITY\СИСТЕМА 
 
Thread information: 
    Thread ID: 52 
    Thread account name: NT AUTHORITY\СИСТЕМА 
    Is impersonating: False 
    Stack trace:    в Microsoft.Exchange.Services.DispatchPipe.Ews.EwsServiceHttpHandlerFactory.GetMessageEncoder(MessageVersion messageVersion)
   в Microsoft.Exchange.Services.DispatchPipe.Ews.EwsServiceHttpHandlerFactory.ParseMessage(HttpContext httpContext, Message& message)
   в Microsoft.Exchange.Services.DispatchPipe.Ews.EwsServiceHttpHandlerFactory.UseHttpHandlerFactory(HttpContext httpContext)
   в Microsoft.Exchange.Services.DispatchPipe.Base.HttpHandlerFactoryBase`1.<>c__DisplayClass11_0.<GetHandler>b__1()
   в Microsoft.Exchange.Diagnostics.RequestDetailsLoggerBase`1.TrackLatency(Enum latencyMetadata, Action method)
   в Microsoft.Exchange.Services.DispatchPipe.Base.HttpHandlerFactoryBase`1.<>c__DisplayClass11_0.<GetHandler>b__0()
   в Microsoft.Exchange.Common.IL.ILUtil.DoTryFilterCatch(Action tryDelegate, Func`2 filterDelegate, Action`1 catchDelegate)
   в Microsoft.Exchange.Services.Core.ServiceDiagnostics.SendWatsonReportOnUnhandledException(ICallContext callContext, Action methodDelegate)
   в Microsoft.Exchange.Services.DispatchPipe.Base.HttpHandlerFactoryBase`1.GetHandler(HttpContext httpContext, String requestType, String url, String pathTranslated)
   в System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   в System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   в System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
     

but i read FindMailboxStatisticsByKeywords was introduced in exchange 2013. What am i doing wrong?

In general I want to get data similar to that which can be obtained through Get-MailboxFolderStatistics and Get-MailboxStatistics cmdlets. Maybe there are other ways to get similar data through soap requests

Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
544 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.