Thursday, November 26, 2015

Interview Questions on REST API and SOAP API in salesforce

1.What is SOAP and What is REST?

REST API

Representational State Transfer.
It is based URI
It works with GET,POST,PUT,DELETE
Works Over with HTTP and HTTPS


SOAP API

Simple Object Access Protocol.
It is based on Standard XML format
It is works with WSDL
Works Over with HTTP,HTTPS,SMPT,XMPP


2.Difference between REST API and SOAP API?
Ans :Varies on records that can be handled. Generally if we want to access less number of records we go for REST API.

3.What is WSDL?
A WSDL is an XML Document which contains a standardized description of how to communicate using webservice.

4.What are the different type of WSDL'S?
Ans:
Enterprise WSDL
Partner WSDL
Apex WSDL
Metadata WSDL
Tooling WSDL
Delegated Atuntection WSDL

5.Difference between Enterprise WSDL and Partner WSDL?
Ans:
Enterprise WSDL:
It is used for building client applications for a single salesforce organization.
Customers who use enterprise WSDL document must download and re-consume it when ever their organization makes a change to its custom objects or fields or when ever they want to use a different version of the API.
Partner WSDL:
It is used for building client applications for multiple organizations.
The partner WSDL documention only needs to be downloaded consumed once per version of the API.

6.How can you expose an apex class as a REST web service in salesforce?
Ans - An apex class can be exposed as REST web service by using keyword '@RestResource'

7.How to fetch data from another Salesforce instance using API?
Ans :Use the Force.com Web Services API or Bulk API to transfer data We this this is a great job for the Bulk API.

8.How to call Apex method from a Custom Button?
Ans :An Apex callout enables you to tightly integrate your Apex with an external service by making a call to an external Web service or sending a HTTP request from Apex code and then receiving the response.
Apex provides integration with Web services that utilize SOAP and WSDL, or HTTP services (RESTful services).

9.What is the use of Chatter REST API?
The Chatter API (also called Chatter REST API) lets you access Chatter information via an optimized REST-based API accessible from any platform. Developers can now build social applications for mobile devices, or highly interactive websites, quickly and efficiently.

10.How to fetch data from another Salesforce instance using API?
Answer: Use the FORCE.COM WEB SERVICES API or BULK API to transfer data We this this is a great job for the Bulk API.

11.What are callouts and call ins?
Making a request to an external system from salsforce is callout.

Getting requests from an external system is a call in.

12.How many callouts to external service can be made in a single apex transaction?
Ans - A total of 10 callouts are allowed in a single apex transaction.

13.What is the maximum allowed time limit while making a callout to external service in apex?
Ans - maximum of 120 second time limit is enforced while making callout to external service

14.What is the default timeout period while calling webservice from Apex.
Ans : 10 sec.

15.can we define custom time out for each call out?
Ans :
A custom time time can be defined for each callout.
the minimum time is 1 millisecond and maximum is 120,000 milli seconds.

16.How to increase timeout while calling web service from Apex ?
Ans :
docSample.DocSamplePort stub = new docSample.DocSamplePort();
stub.timeout_x = 2000; // timeout in milliseconds

17.What is the use of JSON?

25 comments:

  1. Hi, I have all latest dumps of salesforce for all types of salesforce exams if anyone wants you can mail me at
    sfdcconsultant25@gmail.com

    These are original questions from the certification exam and very useful to pass the exam.
    I have all latest dumps of following exams
    90% questions come from it

    Salesforce Administrator (ADM 201)
    Salesforce Sales Cloud Consultant (CON 201)
    Salesforce Service Cloud Consultant
    Platform Developer I
    App Builder

    Immediately i will sent dumps latest one,which helps you to pass

    I will give you as-surety for all latest dumps

    ReplyDelete
    Replies
    1. Hi,

      Could you please share dump for Platform developer 1 and App builder exams

      Delete
    2. Hi ,

      Could you please send me platform developer1 exam

      Delete
    3. please send the dumps at sfcdsaurabh6@gmail.com for Platform developer

      Delete
    4. anuj23a@gmail.com plz share latest
      Service cloud
      Pd1
      Admin
      Appbulider dump
      urgent

      Delete
    5. could you please send below dump to anu.080212@gmail.com
      Salesforce Administrator (ADM 201)
      Platform Developer I

      Thanks in advance :)

      Delete
    6. Hi..can you please share me the PD1 and ADM 201 dumps to mohan.bannela@gmail.com

      Thanks in advance..
      Mohan

      Delete
    7. Can you please send the latest ADM dumps to sstruefriend24@gmail.com

      Delete
    8. i will plan to certification developer 401 can u send the new dump
      sai27.sf@gmail.com

      Delete
    9. This comment has been removed by the author.

      Delete
    10. cvrcerohit@gmail.com plz share latest Service cloud ,Pd1,Admin ,Appbulider dump urgent

      Delete
  2. please share on singhakash1707@gmail.com

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Please share me PD1 dumps
    sfdc.sureshv@gmail.com

    ReplyDelete
  5. Please share platform developer at
    joshibhanu06@gmail.com

    ReplyDelete
  6. please share PD1 and ADM 201 dumps at krishbyla@gmail.com

    ReplyDelete
  7. Please share
    me all dumps at kvishnuvardhan11@gmail.com

    ReplyDelete
  8. Hi guys
    can any one share me latests dumps
    ppurushotham17@gmail.com

    ReplyDelete
  9. Can you please send the Salesforce Sales Cloud Consultant (CON 201) ans APP builder

    ReplyDelete
  10. Hi can you please share the dumps for following exam
    Salesforce Administrator (ADM 201)
    Salesforce Sales Cloud Consultant (CON 201)
    Salesforce Service Cloud Consultant
    Platform Developer I
    App Builder

    ReplyDelete
  11. share dumps on swapnil27687@gmail.com

    ReplyDelete
  12. Hi guys,

    Can anyone share me latest dump for PD1 Examp.
    Jayshree.kothavade2013@gmail.com

    Thank you.

    ReplyDelete
  13. Hi Guys,

    Can someone please share the Sales and Service Cloud dumps on thakurshekhar8@gmail.com.

    Thanks in Advance !!

    ReplyDelete
  14. Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info.

    Digital Marketing Training in Chennai

    Digital Marketing Course in Chennai


    ReplyDelete
  15. in a single transcation we can make 100 callouts i guess question 12 is having different answer

    ReplyDelete