Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

WS-Trust security token request SOAP message and 2005/usernamemixed endpoint

Posted on by 370

All, 

I am attempting to write/update a custom workflow activity written by Scott Durow located here: https://code.msdn.microsoft.com/SharePoint-Integration-c5f21604/view/SourceCode#content  

I have fixed the issue obtaining the auth URL. However, I am encountering an issue obtaining the WS-Trust security token via a SOAP message. Is there anything that needs to be done on the adfs endpoint to allow the server to pass out the token. The endpoint is enabled(I checked),  but does it need a certificate or any other IIS configuration? 

I get the error: "The remote server returned an error: (415) Cannot process the message because the content type 'application/soap+xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8'.."

Any thoughts?

*This post is locked for comments

  • ArdantHammer Profile Picture
    ArdantHammer 370 on at
    RE: WS-Trust security token request SOAP message and 2005/usernamemixed endpoint

    Toby, fortunately, I cannot because I fixed the issue. By using a onmicrosoft.com account, I was able to get WS-Trust security token from the Microsoft servers and bypass ours. Not an ideal solution but a solid one...I think. By the time I was done with this I had rewritten a large portion of the original project and have already forgot it.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: WS-Trust security token request SOAP message and 2005/usernamemixed endpoint

    Can you supply a fiddler trace for this? (Make sure you remove credentials)

    Looking at a successful header of mine I see:-

    POST sts1.example.com/.../usernamemixed HTTP/1.1

    Content-Type: application/soap+xml; charset=utf-8

    Host: sts1.example.com

    Content-Length: 4206

    Expect: 100-continue

    Accept-Encoding: gzip, deflate

    Connection: Keep-Alive

    <s:Envelope xmlns:s="www.w3.org/.../soap-envelope&quot; xmlns

    .

    .

    .

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans