Using Connected app for SOAP based Integration salesforce

apexcommunityintegration

Generally, we use username-password based authentication mechanism if we want external application to consume our Salesforce SOAP webservice. And for calling SF REST webservice we need to create connected app so that we get the client id and secret key for authenticating with Salesforce.

But can we do the other way round, meaning, just wondering, Is it possible for the external systems to call Salesforce SOAP webservice using Connected app (client id and secret key) for authentication?

Or is it like we can't use Connected app in case of SOAP based webservices?

Best Answer

As long as you use the OAuth flow (via Connected App), you can use the Access Token you received with any API (as long as you have the correct scope). It's as a simple as using the Access Token in the sessionId SessionHeader property.