Please refer link below for more information: https://developer.secure.force.com/cookbook/recipe/setting-up-your-salesforce-com-web-services-api-applications https://archive.sap.com/discussions/thread/316218 https://developer.salesforce.com/forums/?id=906F000000090ioIAA https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_partner_examples.htm
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too. Thanks. Deepali Kulshrestha
Please refer link below for more information:
https://developer.secure.force.com/cookbook/recipe/setting-up-your-salesforce-com-web-services-api-applications
https://archive.sap.com/discussions/thread/316218
https://developer.salesforce.com/forums/?id=906F000000090ioIAA
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_partner_examples.htm
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks.
Deepali Kulshrestha