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
chirayu.bansal1.3892593529263923E12chirayu.bansal1.3892593529263923E12 

Can someone tell me how can I set username and password in input header(inputheader_X) in utility class.

Hi,
Can someone tell me how can I set username and password in input header(inputheader_X) in utility class. I am trying this with below code:

bindingobj.inputHttpHeaders_x=new Map<String, String>();
bindingobj.inputHttpHeaders_x.put('Authorization','XXX');

Thanks in advance.
Ashish_SFDCAshish_SFDC
Hi Chirayu, 


Which API are you using SOAP or REST?

See the link below, 

http://stackoverflow.com/questions/4266466/why-prefer-rest-over-soap


Regards,
Ashish