2017-09-12 4 views
-1

、私は外部システムを呼び出すためにしようとしていますし、私は次のエラーを受信して​​います:UN AUTHORIZEエンドポイントがSalesforceで

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

注:私はすでに、リモートサイトの設定で、終了点を指定している

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); 
+0

コードはどこですか?それがなければ、どうすればあなたを助けることができますか? – Script47

+0

編集済みコード –

+0

非常に明確に使用されたタグ:*** Salesforce.comで提供されるPlatform-as-a-Service開発環境 - プラットフォームはForce.comと呼ばれることがあります。専用のSalesforce Stack Exchangeは、Salesforceのすべての質問(http://salesforce.stackexchange.com/***)で利用できます。 – Script47

答えて

1

リモートサイト設定のエンドポイントは、吹き出しで使用されているものと正確に一致する必要があります。 HttpはHttpsとは異なります。サブドメインも同じでなければなりません。呼び出すWebサービスのエンドポイントをデバッグするには、コードに行を追加する必要があります。

関連する問題