Home / Salesforce

SalesForce API in Cloud Computing and Integration

Rating: 4.0Blog-star
Views: 4690
by Arogyalokesh
Last modified: January 29th 2021


 → Exchanging data between distinct applications in a heterogeneous environment    ↓

Distinct applications

Distinct applications

Integrate With Anything

Force.com dramatically reduces the effort to integrate with either on-premises applications like Microsoft, Oracle, SAP or other third-party solutions and external clouds services such as Amazon web services, Facebook, Google app engine, and Twitter. More than half of the traffic on the force.com platform is system–to–system integration, making it the most trusted and successful enterprise API in the market.

Want to enhance your skills in dealing with the worlds best CRM, enroll in our Salesforce Training 

Integration can be done in two ways:

  1. Loose coupling
  2. Tight coupling

→ APP1 < === IF 1 2 === > APP2}             →

APP1 < === IF 1 3 = = = > APP3}                ↑
→ For every integration, an explicit interface is developed

→ N( N-1 )/2

→ Eg:  10 APP’s à 10 (10-1) /2  = 45 interfaces are developed

1. Loose Coupling:

→ One interface  –>  Connected to all applications
→ 1 interface n spoke architecture N applications
→ For this, there are various exclusive s/s’s

  • XI
  • PEGA

→ Exclusive s/w’s are very expressive

  • We use web services    ↓  (less expressive)

2. Tight Coupling

  • Web services are a set of standards that are used to implement interoperability
  • Interoperability means app’s which are working on one platform

        Tight Coupling

  • Web services will set standards
  • App’s will follow standards, they will communicate with each other
  • Web services → no server here

To define standards, there are three ways

  1. UDDI → Universal Descriptions Discovery & Integrations
  2. SOAP → Simple Object Access Protocol
  3. WSDL → Web Service Description Language


  • It is a place of storage
  • Similar to URL


  • An object which carries the data across the app’s and also has well-defined rules, which are present in the protocol


  • To access the Force.com web service, you need a Web Service Description Language File (WSDL)
  • The structure of the data is defined in the WSDL

→ Web services are transported over HTTP
→ Even if WSDL is missing  data directory can be transported over HTTP

Live Ex:

UDDI → shop (recharge)

WSDL → give the explanation about the services it offers

SOAP → performs the service

Java →  J2EE specification (Sun Microsystems)
J2EE server API → EJB

JVM specification → J2EE API

  • .Net → framework
  • Web service → specification à API

Salesforce API

  • Provides access to web services,
  • Web services have to support 3 API

Checkout SalesForce Sample Resumes

Salesforce API
→ SOAP API is used for cross-platform to integrate organization’s data with other applications

→ Restful API is used for a small amount of data

→ Bulk API is used for large volumes of data (unlimited)

  • Data loader → implemented through the bulk API
  • In APEX we will be using SOAP API
  • DML → list → sending (or) putting data
  • List = SOQL → retrieving
Data members
Web service static methods () {
DML list
List = SOQL
Global class WS test {
Integer NUM 1;
Integer NUM 2;
Web service void set values (integer n1, integer n2) {
Integer NUM 1 = n1;
Integer NUM 2 = n2;
Web service static integer getnum1 ()
Return NUM 1;
Web service static integer gets NUM 2 ()
Return num2;
  • Click on generate WSDL
  • Save it in the XML format on the desktop
  • Then go to Apex classes, click on generate from WSDL
  • Click on parse WSDL

Now,  you can change the name as follows:

Eg:    WS test Inbound.Test

  • Generate Apex code
  • Then click on system log
  •  Click on execute an inner class
  • WS test Inbound. Ws test. Stub = new

Apex web services are of two kinds

  • Inbound
  • Outbound

Inbound means it accepts data and places it in the DB
Outbound means sending data from the DB

  • Apex → generate WSDL → Export
  • WSDL contains something called metadata which gives complete information about the class and also helps in associating S objects
  • There are two more WSDL’s associated with SFDC

Checkout Salesforce Interview Questions

Enterprise WSDL:

This contains complete information about the SFDC data model

  • All S objects
  • Strongly typed
  • There are 3 fields say integer, decimal, string in EWSDL

Partner WSDL :

  • Same as enterprise WSDL
  • Loosely typed
  • PWSDL has only one string
  • Whenever a data model is modified while changing the structure of S object, partner WSDL will get updated automatically, whereas EWSDL has to be generated again.
  • We can  generate directory PWSDL & EWSDL

Parse XML: 

Checking the structure (verification)

  • Parse XML is used to verify a WSDL, whether it is properly structured or not.

Render XML:

Creating the structure (generate)

  • Render XML creates an XML file against the speared  structure
  • (Structure → structure of the data model)
  • SF has something called metadata which describes the structure of the force.com

There exist 6 categories of classes in the force.com

  • Wrapper class
  • Collection class      → list → set → map
  • Exception class
  • Enum class
  • System class
  • Primitive class      → Blob

Wrapper Classes:

Classes which can be used as data types

  • They hold only a single value
  • ‘Subject’ is not a wrapper class

Checkout SalesForce Tutorial

Enum Classes:
Enum status = (married, unmarried, divorced, widow)

  • Programmers have to define and assign data type whole variables which were declared by Enum only.


  • We generally have a property called JASON
  • JASON is a format in which we shall store the objects
  • Serializable → converting object into file storage
  • DeSerializable

Wrapper Classes

Are you looking to get trained on Salesforce, we have the right course designed according to your needs. Our expert trainers help you gain the essential knowledge required for the latest industry needs. Join our Salesforce Certification Training program from your nearest city.

Salesforce Training ChennaiSalesforce Training DallasSalesforce Training BangaloreSalesforce Training Hyderabad, Salesforce Training Mumbai, Salesforce Training Delhi, Salesforce Training Noida, Salesforce Training New York, Salesforce Training Chicago, Salesforce Training Kolkata, Salesforce Training Gurgaon, Salesforce Training Pune.

These courses are equipped with Live Instructor-Led Training, Industry Use cases, and hands-on live projects. Additionally, you get access to Free Mock Interviews, Job and Certification Assistance by Certified Salesforce Trainers

Related Articles:
How to Define Validation Rules in SalesForce
Configuring SalesForce Web-To-Lead Form

Mindmajix offers different Salesforce certification training according to your desire with hands-on experience on Salesforce concepts

Salesforce Administration Training Salesforce Lightning Training
Salesforce Advanced Developer Training Salesforce Developer Training
Salesforce IoT Training Salesforce App Builder Certification Training
Salesforce AppExchange Training Salesforce Service Cloud Training
and many more...  

About Author

Author Bio

Arogyalokesh is a Technical Content Writer and manages content creation on various IT platforms at Mindmajix. He is dedicated to creating useful and engaging content on Salesforce, Blockchain, Docker, SQL Server, Tangle, Jira, and few other technologies. Get in touch with him on LinkedIn and Twitter.