How to Call Salesforce API from Lightning Component
You may have heard about that we can not make the Salesforce API Call directly from the lightning component. If you do make the callout from the lightning component then you will get the below error INVALID_SESSION_ID:This session is not valid for use with the API. For Example when you will execute the below code from the Developer Console then you will get the Valid Response 1 2 3 4 5 6 7 8 9 10 11 HTTP h = new HTTP(); HTTPRequest req = new HTTPRequest(); HttpRes...
salesforce rest api test class
上一篇文章(salesforce rest api demo)我们写到salesforce如何写rest api,这篇我们将写如何写test class @isTest(SeeAllData=true) public class Api_user_profileTest { static testMethod void Api_user_profileTest() { system.debug('start...'); Test.startTest(); String ReturnCode = ''; RestContext.request = new RestRequest(); RestContext.response = new RestResponse(); RestContext.request.requestURI = '/services/apexrest/user/p...
ActiveMQ REST Management API
ActiveMQ的管理接口是基于JMX的(参见 JMX操作ActiveMQ(1)、JMX操作ActiveMQ(2)),通过管理接口我们可以与Broker交互,查询各种Broker状态、统计数据,浏览连接、消费者、生产者,以及管理消息。 虽然ActiveMQ通过CMS(支持c++)、NMS(支持.net)以及多种protocol(STOMP、MQTT、AMQP等)支持了多种平台环境下的消息发送接收,但是由于JMX是Java专有的技术,导致ActiveMQ JMX管理接口一直不能使用在其他环境。 从ActiveMQ5.8.0起,引入了jolokia库,使得JMX接口可以直接转换成REST接口,JMX管理接口就成了现在的...