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 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"?
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
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.
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
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"?
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
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.
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/