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

Exception while making callout to the strikeiron webservices

Hi Friends,


I am trying strikeiron verifyemail webservices.I have writtern apex class and from this class I try to call verifyemail web services of strikeiron.


When I exceute it using anonymous block,I get the following error:-


System.CalloutException: IO Exception: Unauthorized endpoint, please check Setup->Security->Remote site settings. endpoint =


What can be the reason for this error and what can I do to get rid of this error.


In my Apex class I  have done authenictaion by providing useraname and passord and then I am calling function to verify email.


Can somebody throw some light on it?


Here comes the code:-


public class NewEmail
public email2.SIWsOutputOfVerifyEmailRecord NewEmail()

Email2.EmailVerificationSoap temp=new Email2.EmailVerificationSoap();
temp.licenseinfo=new email1.licenseinfo();
temp.licenseinfo.registereduser=new email1.registereduser();
email2.SIWsOutputOfVerifyEmailRecord myresponse=new email2.SIWsOutputOfVerifyEmailRecord();
System.debug('The value in the myreposne is'+myresponse);
return myresponse;






Leon MorockiLeon Morocki

Each external endpoint to which you are making requests needs to be explicitly authorized in Setup -> Security Controls -> Remote Site Settings


Thanks Leon,


I have  already registered endpoint URL in remote site settings.Even then I get this error.