You are on page 1of 2

1. What is integration ?: Integration is a process of 14. What are methods in REST? 19. How many ways to XML parsing ?

connecting two applications A. HTTPGET (Retrieve record from A. They are two ways of XML parsing 1. XML streams
2. What is webservices ?: Webservices is a Resource/Object), HTTPPOST(Insert), 2. XML DOM
functionality or code which helps to us to do HTTPPUT(Update), HTTPPATCH (Insert+Update) 20. What is WSDL ? : WSDL stands for Webservices
integration. and HTTPDELETE (Delete). Description Language. It contains types, messages,
3. How many types of API’s available in salesforce 15. How REST can be accessed or which message port types and Binding.
? : SOAP API, REST API, Bulk API and Streaming format REST supports ? 21. How SOAP and REST will communicate?
API. A. REST supports both XML and JSON A. SOAP will communicate through WSDL file.
4. What is Call In and Call Out?: Call In is used to 16. What is JSON ? : JSON stands for JavaScript B. REST will communicate through HTTP
exposing our webservices to another users Call Out is Object Notation. JSON is light weighted than XML. protocol.
used to invoking or consuming our webservices to 17. What is difference between Enterprise WSDL 22. What is remote site settings ? : Remote site
others. and Partner WSDL? settings is used to authorize the endpoint and allow us
5. How SOAP can be accessed? SOAP can be Enterprise WSDL: The Enterprise WSDL is strongly to whom integrate(end user)
communicated through WSDL file, without WSDL file typed. The Enterprise WSDL is tied (bound) to a 23. What is JSON ?
we can’t do integration. SACHIN LAKDE Page 2 specific configuration of Salesforce (ie. a specific JSON stands for JavaScript Object Notation. JSON is
Message format in SOAP is XML organization’s Salesforce configuration). The light weighted than XML. When exchanging data
6. How to do callout integration? : Generate WSDL Enterprise WSDL changes if modifications (e.g between a browser and a server, the data can only be
code from class Path: setup-develop -apex class custom fields or custom objects) are made to an text. JSON is text, and we can convert any JavaScript
7. Limitations of WSDL file ?: File must be in organization’s Salesforce configuration. object into JSON, and send JSON to the server.
.WSDL extension. Multiple port types and binding will Partner WSDL
not allow Import and Inheritance operations are not The Partner WSDL is loosely typed. The Partner Q. What is Remote Setting?
supported. WSDL can be used to reflect against/interrogate any A. It allows us to access external website resources
8. How many ways to XML parsing ? : They are two configuration of Salesforce (ie. any organization’s from a Salesforceapplication for your organization.
ways of XML parsing 1. XML streams 2. XML DOM Salesforce configuration). The Partner WSDL is static, We can access these external websites through Apex
9. How to read root element in XML DOM ? and hence does not change if modifications are made Callout, Visualforce pages and via XmlHttpRequest
A. getroot element to an organization’s Salesforce configuration. How calls.
10. How to read child element in XML DOM ? SOAP can be accessed ? SOAP can be communicate
A. getchild element through WSDL file, without WSDL file we can’t do Q. How do I deploy remote site settings in
11. How to read all child elements in XML DOM ? integration. Message format in SOAP is XML Salesforce?
A. getchild elements 18. How to generate WSDL file? To register a new site:
12. How to read text between tags ? : gettext A. Go to Setup -> Develop -> apex classes Click on 1. Click New Remote Site.
13. How SOAP and REST will Communicate ? Apex class Click on Generate WSDL button Generate 2. Enter a descriptive term for the Remote Site
A. SOAP will communicate through WSDL file REST WSDL code from class Save as .wsdl file in your Name .
will communicate through HTTP file system 3. Enter the URL for the remote site.
4. To allow access to the remote site regardless of 3. Set your headers as below.
whether the user's connection is over HTTP or SOAPAction = ""
HTTPS, select the Disable Protocol Security Content-Type = text/xml
checkbox. 4. Write Code
Q. How do I set up remote sites on Apex? 5. Get the SessionId
A. We can create or update Remote Site Settings in
Apex using Metadata API. Postman is an application used for API testing. It is
an HTTP client that tests HTTP requests, utilizing a
Named Credential: It specifies the URL of a callout graphical user interface, through which we obtain
endpoint and its required authentication different types of responses that need to be
parameters in one definition. subsequently validated.

A connected app is a framework that enables an


external application to integrate with Salesforce
using APIs and standard protocols, such as SAML,
OAuth, and OpenID Connect. Connected apps use
these protocols to authenticate, authorize, and provide
single sign-on (SSO) for external apps.

A session ID is typically granted to a visitor on their


first visit to a site. It is a unique number that a Web
site's server assigns a specific user for the duration
of that user's visit (session). For security purpose
when a user or visitor use the site session Id is used to
restrict visitor duration on this site.
How to get Session Id?
1. Use POST method.
2. Set the end point.
Sandbox -
https://test.salesforce.com/services/Soap/u/35.0
Production -
https://login.salesforce.com/services/Soap/u/35.0
Use custom domain URL if my domain is enabled and
prevent login from test or login.salesforce.com is
enabled.

You might also like