简体   繁体   English

503服务在Salesforce中不可用

[英]503service unavailable in Salesforce

My goal is to create a REST API Integration from Salesforce to SAP application. 我的目标是创建从Salesforce到SAP应用程序的REST API集成。

SUCCESS Through Chrome APP 通过Chrome APP成功

1. All I need to do is retrieve values from sap application through the REST API. 1.我要做的就是通过REST API从SAP应用程序检索值。 When I tried to use the Chrome APP 'Advanced Rest Client' and have passed the appropriate URL and Content with POST method I was able to retrieve the values from local server database. 当我尝试使用Chrome APP“ Advanced Rest Client”并通过POST方法传递了适当的URL和Content时,我能够从本地服务器数据库中检索值。

For EG : If I pass request 92126 then I was able to get response 'SAN DIEGO' which is correct. 对于EG:如果我通过请求92126,则可以得到正确的响应“ SAN DIEGO”。

Here is the link ( https://chrome.google.com/webstore/detail/advanced-rest-client/hgmloofddffdnphfgcellkdfbfbjeloo?hl=en-US ) for Advanced REST Client. 这是高级REST客户端的链接( https://chrome.google.com/webstore/detail/advanced-rest-client/hgmloofddffdnphfgcellkdfbfbjeloo?hl=zh-CN )。

PROBLEM from Salesforce : Salesforce的问题:

  1. I had created a remotesite setting 我创建了一个远程站点设置
  2. When I created this REST class in SAlesforce and tried invoking the End Point then it's throwing this error. 当我在SAlesforce中创建此REST类并尝试调用End Point时,它将引发此错误。

System.HttpResponse[Status=Service Unavailable, StatusCode=503] System.HttpResponse [状态=服务不可用,状态代码= 503]

As the web api url which is provided to us is in local sql server ie hosted in private, as we know in Salesforce for making callouts the URLs must be in public. 由于提供给我们的Web API URL在本地sql服务器中,即托管在私有服务器中,正如我们在Salesforce中所知道的,用于进行标注的URL必须是公开的。 But the URL is in private only for the security reasons not hosted in public. 但是,仅出于安全原因,URL是私有的,而不是公共的。 We should achieve it, any way is there to achieve it? 我们应该实现它,有什么方法可以实现它? What change should be done in Salesforce or server to communicate to each other, and allows to make the callout? 应在Salesforce或服务器中进行哪些更改以相互通信并允许进行标注?

It is most likely that you endpoint does not allow access from outside some ip range which you indicated by saying it's not public. 您的端点很可能不允许您通过说它不是公共的来指示某个IP范围之外的访问。 Salesforce is a SaaS application hosted outside the domain that your service is on. Salesforce是一个SaaS应用程序,托管在您服务所在的域之外。 In order for Salesforce to access that endpoint resource you need to whitelist Salesforce IP ranges, which can be found here . 为了让Salesforce访问该端点资源,您需要将Salesforce IP范围列入白名单,可以在此处找到。

Whitelisting allows Salesforce to access the resource. 白名单允许Salesforce访问资源。 The only caveat is that because Salesforce is multi-tenant it means that any instance of Salesforce on the range that you whitelist would have access to your endpoint. 唯一需要注意的是,由于Salesforce是多租户,这意味着您将白名单范围内的任何Salesforce实例都可以访问端点。 If this is not ok, you might want to add some sort of header or sign the request to the call to that identifies your Salesforce instance uniquely from any other instance to validate that the call originated from your Salesforce org. 如果这样做不可行,则可能要添加某种标头或对调用进行签名,以将其标识为与其他任何实例唯一地标识您的Salesforce实例的调用,以验证该调用源自您的Salesforce组织。

(I am linking to the article instead of pasting the IP ranges here because these may change in the future). (我链接到该文章,而不是在此处粘贴IP范围,因为它们将来可能会更改)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Spring Security:如何返回503服务不可用? - Spring Security: How to Return 503 Service Unavailable? .NET Web 2.0 API,503服务不可用 - .NET web 2.0 API, 503 Service unavailable 正确使用 503(服务不可用)状态码的方法 - Correct way to use the 503 (Service Unavailable) status code Spring Boot应用程序(安全性+ oauth2)获取HttpServerErrorException:503服务不可用 - Spring Boot Applcation (Security + oauth2) get HttpServerErrorException: 503 Service Unavailable 在Visual Studio中向Solr发出一个宁静的请求,给出提示(服务不可用错误:503) - Making a Restful Request to Solr in Visual Studio giving (Service unavailable error: 503) 这里Map api Multi-reverse Geocode提供503服务不可用 - Here Map api Multi-reverse Geocode is giving 503 service unavailable 尝试请求RESTful URI时,Jetty日志返回“服务器已发送HTTP状态代码503:服务不可用” - When trying to request RESTful URI, Jetty log returns “The server sent HTTP status code 503: Service Unavailable” Sabre API重新验证服务不可用? - Sabre api revalidate service unavailable? SalesForce与外部RESTful服务集成 - SalesForce to integrate with external RESTful service 通过MuleSoft消费Salesforce REST服务 - Consume Salesforce REST Service through MuleSoft
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM