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
partha_cegpartha_ceg 

Can i pass salesforce credentials in the request header

I have written an apex method which i have generated it out as WSDL.

Is it possible for me to just put salesforce credentials in the request header and can just do only 1 callout there by bypassing the login callout in my dot net application.

I am able to perform this through soap ui
ShashankShashank (Salesforce Developers) 
I'm afraid that is not possible. For security robustness, you will be enforced to make a login call and get a session Id and only then be able to make calls. Just like in the UI, where a user must login first and only then be able to do anything.