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
trick.ax1374trick.ax1374 

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 = http://ws.strikeiron.com/StrikeIron/EmailVerify5/EmailVerification

 

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();
temp.licenseinfo.registereduser.userid='chinglish1234@gmail.com';
temp.licenseinfo.registereduser.password='strike957';
email2.SIWsOutputOfVerifyEmailRecord myresponse=new email2.SIWsOutputOfVerifyEmailRecord();
myresponse=temp.VerifyEmail('nitin009_9@yahoo.com',20); 
System.debug('The value in the myreposne is'+myresponse);
return myresponse;

}
}

 

 

Thanks,

Trick

Leon MorockiLeon Morocki

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

trick.ax1374trick.ax1374

Thanks Leon,

 

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

 

Thanks,

Trck