salesforce - UN AUTHORIZE ENDPOINT -


in salesforce, trying call external system , i'm receiving following error:

system.calloutexception: io exception: unauthorized endpoint, please check setup->security->remote site settings. endpoint. 

note: have specified end point in remote site settings.

 string applicationid='****'; string applicationkey = '*****';   string companyid;  string languageid; //for getting session id wwwviadcomsecurityv2.basichttpbinding_iauthenticationservice s=new  wwwviadcomsecurityv2.basichttpbinding_iauthenticationservice();     wwwviadcomsecurityv2.appsessioninfo    a=s.startappsession(applicationid,applicationkey,companyid,languageid);    system.debug('>>>>>>>>>>'+a.sessionid); 

the endpoint in remote site setting must match used in callout. http different https. subdomain must same too. should add line in code debug endpoint of web service calling.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -