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
AdityaRAdityaR 

Apex Webservice Query

Hi,

 

We have implemented an apex webservice which is invoked by our client by consuming its wsdl. Is there a getRemoteHost() (or similar) call in apex which can be used to find out the IP address and the name of the machine from which the salesforce webservice was invoked ?

 

Thanks,

-Aditya

 

Sonali BhardwajSonali Bhardwaj

Try ApexPages.currentPage().getHeaders().get('X-Salesforce-SIP')

 

I have not tried this, may be this would be useful for you.