Showing results for 
Search instead for 
Did you mean: 
New Member

Will my app not work anymore based on WS-Trust removal?

Hi all! 


If found the following when trying to determine whether my app will stop working or not based on the WS-Trust deprecation:


How do I know if my code or application is using WS-Trust?

First and most importantly, this change only impacts client applications that connect to the Microsoft Dataverse. It does not impact custom plug-ins, workflow activities, or on-premises/IFD service connections.


However, my app (that connects against the former Dynamics CRM Online) is using the SOAP API directly (instead with requests like the following one. It's being used by several customers and we need to determine how to proceed. Will it stop working? Thanks!





<?xml version='1.0' encoding='UTF-8'?>
<a:Action s:mustUnderstand="1"></a:Action>
<a:To s:mustUnderstand="1"></a:To>
xmlns:o="" s:mustUnderstand="1">
<u:Timestamp u:Id="_0">
xmlns="" Id="Assertion0" Type="">
<EncryptionMethod Algorithm=""></EncryptionMethod>
<EncryptionMethod Algorithm=""></EncryptionMethod>
<ds:KeyInfo Id="keyinfo">
<wsse:KeyIdentifier EncodingType="" ValueType="">G/YmqJgv2n7dYCBKQO7rXPszews=</wsse:KeyIdentifier>
xmlns:xsi="" xsi:type="ns3:EntityReference">
xmlns:xsi="" xsi:type="ns3:ColumnSet">
xmlns:xsi="" xsi:nil="true" />

Super User
Super User

If your code is using a username and password to connect to dataverse, it is using WSTrust, and it will stop working.


You need to have an app registration with either an App User registered in Dataverse or an App User with user impersonation privs to act as a delegate and retrieve a user token from Azure Active Directory.

New Member

Thanks for your response, @cchannon ! Then:
1) Is "Dynamics CRM Online" part of the Dataverse?

2) If that's the case and my app will stop working, is it possible to continue using the SOAP API and inject the token somehow? Any document that explains that is available?


I have the exact same Issue. We are using an custom application where the authentication is build the same way and it does the authentication directly with XML WS Trust with SOAP and the following URL

I tried to use the Token from an Azure Application which has enough rights to read and write our Dynamics CRM but it did not work because it is not compatible with endpoint. 

In the application it gets a securityToken0, securityToken1 and a keyIdentifier but from the OData Azure Application (<mytenantid>/oauth2/token) we only get one access_token which seems not compatible with the format I stated above.

Is it somehow possible to get a compatible token for the SOAP API from Azure?

1. Yes. "Dynamics" is the brand name for Microsoft's first-party line of applications built on Dataverse. And, it used to be the case that the whole stack (power automate, dataverse, canvas apps, all of it) was called Dynamics 365. So, often times you will see outdated documentation that refers to Dynamics 365, but really means the same thing as Dataverse.

2. I haven't used the SOAP endpoint in probably 7 years. You really should modernize. But, if you can't update that code, then I think it should still work with modern authentication. You just need to instantiate your client correctly using oauth... I would think.


Use OAuth authentication with Microsoft Dataverse (Dataverse) - Power Apps | Microsoft Docs

Thank you for your reply and your explanation regarding the Microsoft Dataverse. 
At the moment I can not update the code sadly and need a short time solution.
I will give it a try with modern authentication for now.

New Member

That is exactly my problem and I'm urgent lookup for a workaround. Actually the Ws-Trust service has been shutdown by Microsoft by April 2022! Now my Customer can't exchange any business data!!! 

We are using SOAP Endpoint OrganizationService Username/Password - Fetch/Upsert/MultipleRetrieve application=soap+xml header. We have requested Azure App registration and are able to get OAuth2.0 Security Token. But we did not figure out how to make SOAP Header/Body - OAuth2.0 enabled?  

I would appreciate any hint or example how this could be fixed.

Thanks for your support

Best regards Peter

Hi @prodriguez 


I have written a blog post on WS-Trust Authentication and changes required ..please see this link once to get clarify on what all will are deprecated...


For your question regarding using SOAP API, you can refer this 


You can test your SOAP requests using SOAP UI..


I hope this should give you a direction firstly and possibly the solution....




Hi Peter,

We are facing the same issue. I was wondering if you had fixed the issue. If positive, how did you compose SOAP Header/Body for OAuth authorization? Please advise.

Thank you in advance.



New Member

Hey @rqg0717 Hey @PeterSchlagi ,

I was able to fix this issue with a few changes to the xml structure so the soap /web endpoint was able to process my requests. Please try the following:

1) Delete the whole <s:HeaderXML Header if you have any.

2) Change „xmlns:s=“ to -> „xmlns:s=“ in the <s:Envelope> XML Tag
3) Send the SOAP Action as http header like in the attached picture
4) Add the Azure Bearer Token to the Http Header like "Authorization Bearer {{authToken}}"







Helpful resources

Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Users online (4,712)