Autodiscover Response : An element node 'soap:Envelope' of the type Element was expected, but node 'Autodiscover' of type Element was found

Kumar, Sachitha (Legal) 20 Reputation points
2023-07-20T09:14:02.4166667+00:00

I am raising this ticket on behalf of Official Administrator(service) account as we dont access .

Autodiscover_Response_ConsoleApp1.jpg

Autodiscover_Response_ConsoleApp1_2.jpg

UserSettings_Code_Exception_1.jpg

UserSettings_Code_Exception_2.jpg -- Change in Autodiscover Uri

I am raising this ticket on behalf of Official Administrator(service) account as we dont access .

Suggested Solution From Microsoft Team: https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-maintain-affinity-between-group-of-subscriptions-and-mailbox-server#how-is-affinity-maintained

We are trying to implement Maintain affinity between a group of subscriptions and the Mailbox server in Exchange(X-AnchorMailBox) in our product code. To Implement this, mentioned in the microsoft document we need to get usersettings for a group of mailboxes using autodiscover (fetch ExternalEWSURL, GroupInformation) .

Currently we are trying out with C# Console Application with service account, with that we are getting Autodiscover Response as 600(Invalid Request). we dont have any Exchange server configured so how can we fetch the required Usersettings? The Autodiscover service returns only the configuration settings requested. If a requested setting is not implemented on the Exchange server, no element is returned.

We are not using any Exchange server.

Referred Document: https://learn.microsoft.com/en-us/previous-versions/office/developer/exchange-server-2010/dd633650(v=exchg.80)

Our Questions are:

  1. How can get Exchange Server , is it mandatory for the X-AnchorMailBox Implementation?
  2. Can you please help to get rid of Autodiscover Response as 600(Invalid Request) Issue.
  3. How can we check and fetch Configured UserSettings ?

Can you Please assist us further.

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
4,364 questions
Microsoft Exchange Online
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,448 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,648 questions
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.
529 questions
{count} votes

Accepted answer
  1. Aholic Liang-MSFT 13,826 Reputation points Microsoft Vendor
    2023-07-21T06:44:30.1433333+00:00

    Hi @ Kumar, Sachitha (Legal),

    First of all, I apologize for not being very good at development and code.

    In order to get more accurate development help and advice, I added the Exchange server development tag for your thread.

    Here are some of my thoughts on whether Exchange Server is needed in your question:

     

    1.How can get Exchange Server , is it mandatory for the X-AnchorMailBox Implementation?

    Based on the information in the code page that you provided, it appears that services are being developed for Mailbox for Exchange online. Are you currently using the Graph API?

    If this is the case, you should not need Exchange Server and EWS-related parameters.

    In addition, according to my search, X-AnchorMailBox is used to lock the specified mailbox, and its value is set to the SMTP address of the targeted mailbox user.

    Therefore, exchange server is not mandatory for the X-AnchorMailBox header.

     

    2.Can you please help to get rid of Autodiscover Response as 600(Invalid Request) Issue.

    https://autodiscover.mydomain.com/autodiscover/autodiscover.xml

    Entering from the above URL and the page response returns "600 Invalid Request", which means that Autodiscover is working fine from the server side, which is the expected page.

    3.How can we check and fetch Configured UserSettings

    For services that Microsoft 365, I recommend that you use the Graph API to get information about users.

    For specific commands, please refer to this link:Get a user - Microsoft Graph v1.0 | Microsoft Learn

      Hope the above suggestions are helpful to you!


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.


0 additional answers

Sort by: Most helpful