function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ali Khalil 8Ali Khalil 8 

is clientID different from access token in case SOAP apis?

If it is different then how can we get ClientID for the authorized client?
ANUTEJANUTEJ (Salesforce Developers) 
Hi Ali,

To my knowledge, the parameter client id is necessary to get an access token which could be used to get access to the resources.

The client Id needs to be provided by the client to make sure the parameters are sent properly and could be validated to make a request for access token.

I hope this helps.

Regards,
Anutej
Ali Khalil 8Ali Khalil 8
Hi ANUTEJ ,

I know client ID is necessary to get access token. I want to know the, how to make requests after getting access token. Like following SOAP envelop uses username and password, how can i use access token for request verification? Or this request header can be modified with "access token"?
ANUTEJANUTEJ (Salesforce Developers) 
Having access token means you are verified you will have to enclose the access token between the necessary tags to make a request.

For example: If I am making a request using soap UI with the wsdl file generated from salesforce org.

>> I will make a login request then get the access token.

>> Now  using the proper API end point and session id we will make a request to get the necessary information.

I found this blog with the link for an example of making a request from soapui to salesforce using Soap API: http://amitsalesforce.blogspot.com/2019/02/setup-soapui-to-test-salesforce.html

I hope this helps.

Regards,
Anutej
Dev_AryaDev_Arya

Hi Ali,
In SOAP web services, the OAuth access token can be passed in a SOAP Header inside the SOAP envelope or in the Authorization HTTP header of a request.

For example, 
1. In header value is added as  ->   Authorization: Bearer rRR0GnTudjuUUGaSt0n
2. Followed by SOAP request XML as the payload.

You can find a picture view here :

https://smartbear-cc.force.com/portal/KbArticleViewer?name=How-to-send-a-SOAP-request-with-the-OAuth-authorization&sp=all

Cheers.

{tushar-sharma}{tushar-sharma}
You can use SOAP API, login call to get access token.
You can check step by step guide here: https://newstechnologystuff.com/2020/05/26/use-soapui-to-test-salesforce-webservice/

If this answer helps you, please mark it as accepted.

Regards,
Tushar Sharma
https://newstechnologystuff.com/