Share via

Win2022 ADFS, Why does the SOAP metadata response (WS-Transfer Get from adfs/services/trust/mex) return different endpoints than the HTTP GET request from the browser?

Karsten 0 Reputation points
2026-02-10T14:34:34.8466667+00:00

Hello

We have a local legacy application that is using Windows Authentication with WS Trust.

For that the "adfs/services/trust/13/windowstransport" endpoint has been activated on the ADFS.

Requesting the metadata in the browser (HTTP GET request to adfs/services/trust/mex) I can see that the endpoint is successfully returned in the xml result.

The legacy application is using the .NET Framework class: MetadataExchangeClient, which by default uses a WS-Transfer Get request to read the metadata, so it uses a SOAP POST request to adfs/services/trust/mex with the action 'http://schemas.xmlsoap.org/ws/2004/09/transfer/Get'.

The SOAP response however does not contain the 'adfs/services/trust/13/windowstransport' endpoint. Most of the other endpoints still seem to be contained in the response as expected.

Is that a configuration setting on the ADFS that has to be adjusted for that to work?

In the previous ADFS version that was used (Win2016) the metadata was correct in both cases, it just failed to work after switching to Win2022.

Thanks for the help.

Regards,

Karsten

Microsoft Security | Active Directory Federation Services
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Karsten 0 Reputation points
    2026-02-13T09:46:18.28+00:00

    It turned out that the issue was caused by a missing SPN registration on the ADFS.

    After the SPN registration was done, the metadata url was correctly returning the endpoint in both formats, and event the metadata returned by the HTTP GET method was correct now (previously it did contain errors that could not be read by the WsdlImporter class).

    0 comments No comments

  2. Q&A Assist
    2026-02-10T14:35:18.42+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The discrepancy between the SOAP metadata response from the WS-Transfer Get request and the HTTP GET request in your ADFS setup may be related to how the endpoints are configured in Windows Server 2022 compared to Windows Server 2016. In ADFS, certain endpoints may not be included in the SOAP response due to configuration settings or the specific behavior of the WS-Transfer protocol.

    Here are a few points to consider:

    1. Endpoint Configuration: Ensure that the adfs/services/trust/13/windowstransport endpoint is properly configured and enabled in your ADFS settings. Sometimes, specific endpoints may not be included in the metadata published for SOAP requests if they are not configured to be exposed.
    2. Differences in ADFS Versions: The behavior of metadata publishing may have changed between Windows Server 2016 and 2022. It's possible that certain endpoints are treated differently in the newer version, which could explain why they appear in the HTTP GET response but not in the SOAP response.
    3. Testing with Different Protocols: You might want to test the metadata retrieval using different protocols or methods to see if the issue persists across all types of requests. This could help identify if the problem is specific to the WS-Transfer protocol.
    4. Review Documentation: Check the official Microsoft documentation for any notes on changes in ADFS behavior or additional configuration steps that may be required for Windows Server 2022.
    5. Logs and Traces: Review the ADFS logs for any errors or warnings that may indicate why the endpoint is not being included in the SOAP response. Tools like Fiddler can help trace the requests and responses to see if there are any discrepancies in the communication.

    If the problem continues, consider reaching out to Microsoft support or community forums for more targeted assistance regarding ADFS on Windows Server 2022.


    References:

    0 comments No comments

Your answer

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