SOAP web services are based on SOAP and WS-* specifications I did some research and the following information was have gathered, aggregated and presented in a tabular format for my readers to act as a ready reckoner. Although I was able to provide a satisfactory answer, I felt more was required. One of the interview questions was to compare the two Web Services types namely SOAP based Web Services and RESTful Web Services. How to have a star rating field on custom object i.I have been giving a series of technical interviews lately.How to add visualforce page in home page in salesf.How to call apex class from custom button(Javascri.How to do Integration between two different organi. How to do Avalara tax API Integration With Salesfo.How to delete all records from custom object in sa.Interview questions on triggers In salesforce.Interview Questions on Batch Apex In salesforce.Interview Questions on Workflows and Approval Proc.Interview questions on Reports and Dashboard in sa.Interview questions on Sandbox environment in sale.Interview Questions on REST API and SOAP API in sa.Interview Questions on Profiles,Permission set,use.Stub.timeout_x = 2000 // timeout in milliseconds The minimum time is 1 millisecond and maximum is 120,000 milli seconds.ġ6.How to increase timeout while calling web service from Apex ?ĭocSample.DocSamplePort stub = new docSample.DocSamplePort() Getting requests from an external system is a call in.ġ2.How many callouts to external service can be made in a single apex transaction?Īns - A total of 10 callouts are allowed in a single apex transaction.ġ3.What is the maximum allowed time limit while making a callout to external service in apex?Īns - maximum of 120 second time limit is enforced while making callout to external serviceġ4.What is the default timeout period while calling webservice from Apex.ġ5.can we define custom time out for each call out?Ī custom time time can be defined for each callout. Making a request to an external system from salsforce is callout. Developers can now build social applications for mobile devices, or highly interactive websites, quickly and efficiently.ġ0.How to fetch data from another Salesforce instance using API?Īnswer: Use the FORCE.COM WEB SERVICES API or BULK API to transfer data We this this is a great job for the Bulk API. The Chatter API (also called Chatter REST API) lets you access Chatter information via an optimized REST-based API accessible from any platform. The partner WSDL documention only needs to be downloaded consumed once per version of the API.Ħ.How can you expose an apex class as a REST web service in salesforce?Īns - An apex class can be exposed as REST web service by using keyword to fetch data from another Salesforce instance using API?Īns :Use the Web Services API or Bulk API to transfer data We this this is a great job for the Bulk API.Ĩ.How to call Apex method from a Custom Button?Īns :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.Īpex provides integration with Web services that utilize SOAP and WSDL, or HTTP services (RESTful services). It is used for building client applications for multiple organizations. It is used for building client applications for a single salesforce organization.Ĭustomers 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. Generally if we want to access less number of records we go for REST API.Ī WSDL is an XML Document which contains a standardized description of how to communicate using webservice.ĥ.Difference between Enterprise WSDL and Partner WSDL? 2.Difference between REST API and SOAP API?Īns :Varies on records that can be handled.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |