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
jayalajayala 

callout sample for passing credentials

Can anyone provide me the sample code to set username and password for a Apex code callout. I see most of the people set certification. But i am looking for some sample code where in we can set user name and password to the webservice client call.

 

In my case i am trying to consume a SAP Wervice from Apex code generated by WSDL.

AndreyzhAndreyzh

I'd like to bump this one. Encountered the same issue,