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
ShivaShiva 

How to read HTTP header?

I have webservices running on our server and I am sending the http header for security purpose from SFDC.

 

This code is in my SFDC controller.

 

Service.ServiceSOAP wsdl = new Service.ServiceSOAP();
       
        //Security
        wsdl.inputHttpHeaders_x = new Map<String, String>();

        //Setting a basic authentication header
       
        wsdl.inputHttpHeaders_x.put('Authorization', 'Act QWxhZGRpbjpvcGVuIHNlc2FtZQ==');

 

 

Please can someone give some sample code(Java) to read this http header at the other end. We are using JAVA.

 

Thanks

Shiva