Big Machines is one of the Vendor like Salesforce: -------------------------------------------------- Which contains more features for Quote Generation.
Enterprise WSDL: ---------------- * It is Strongly types WSDL. * It is a big WSDL which contains entire schema of the organization (Detail objects like account, contact ...) * If the schema of the organization modified then we need to regenerate Enterprise WSDL. * It is suitable when we need to integrate only with one organization.
Partner WSDL: ------------- * It is Loosely coupled WSDL. * It is small WSDL which contains Generic information about schema of the organiztion (It doesn't include detail object information). * If the schema of the organization modified then no need to create Partner WSDL again. * It is suitable when we need to integrate with multiple organizations (Like sandbox, production).
* We need to provide username and password for authentication while consuming WSDL which belongs to external application. (We should know their authentication details). * After generating apex classes from WSDL then in those apex classes we should provide username and encrypted password (string s=encodingutil.base64Encode(b); like this).
* If we provide WSDL to access in external application then we need to provide our authentication (username and password) to external system.
Rest API is for another usage than Soap API -------------------------------------------
For data replication / sync, you have to use the Soap Api, beacuse you have dedicated verbs for this : getDeleted, get Updated, capability to query on deleted records...
Think about using the Rest Api for single record usage by a final user. For instance, if you are developing a mobile app, Rest Api would be appropriate.
*** Web services (Concrete WSDL) - roughly*** //Generated by wsdl2apex //Paste and execute below code in developer console /*BookrWs.BookWs stub = new BookrWs.BookWs(); stub.sessionHeader = new BookrWs.sessionHeader_Element(); stub.sessionHeader.sessionID = userInfo.getSessionID(); stub.insertBook('SOAP19','VASU',1000);*/
public class Bookrws { public class LogInfo { public String category; public String level; public class CallOptions_element { public String client; private String[] client_type_info = new String[]{'client','http://www.w3.org/2001/XMLSchema','string','1','1','false'}; private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/schemas/class/BookWs','true','false'}; private String[] field_order_type_info = new String[]{'client'}; } public class BookWs { //we have to register this below url in remotesitesettings public String endpoint_x = 'https://ap1-api.salesforce.com/services/Soap/class/BookWs'; } }
} *** Web services (Abstract WSDL)*** //Book class for creating WSDL files global class BookWs { webservice static void insertBook(String title,String author,Integer price) { List blist = new List(); Book__c b = new Book__c(); b.Name = title; b.Author__c = author; b.Price__c = price; blist.add(b); //we can direcly insert record into model //insert b; //First after inserting values into the record we have to add record to the list insert blist; } } //Developer Console Code /*BookWs.insertBook('SOAP','SRINU',500);*/
SOAP API call out response will be always in XML format. REST API call out response will be in XML or JSON format. Default response will be in JSON format.
Critical Scenario: Difficulty: For call out to parse the response for the different services taking around 25, 30, 20 sec. Solution: Improved the performance by creating the POJO class for the each service, achieved around 80% performance (5,6,4,2 sec).
SSO with Salesforce as a Service Provider - http://www.jitendrazaa.com/blog/salesforce/step-by-step-guide-to-setup-federated-authentication-saml-based-sso-in-salesforce/
Hi How to get data from third party system and and store into salesforce custom object Automatically every week Monday IST 7AM. Using REST API. Can you please help me and also provide me sample code for this scenario.
Public Rest api service in Salesforce - Create Rest Api class and assign to guest user profile in the site.com wesite. which can be tested in postman json tools for rest api.
http://wiki.developerforce.com/page/Introduction_to_the_Force.com_Web_Services_Connector
ReplyDeleteCast Iron:
ReplyDeletehttp://krishhari.wordpress.com/2012/03/
ReplyDeleteBig Machines is one of the Vendor like Salesforce:
--------------------------------------------------
Which contains more features for Quote Generation.
Hai srinu Can You Provide Topic wise Interview Questions On SFDC Configuration.
DeleteSOFON:
ReplyDelete------
SOFON is one of the on primise Application for Quote Generation.
Enterprise WSDL:
ReplyDelete----------------
* It is Strongly types WSDL.
* It is a big WSDL which contains entire schema of the organization (Detail objects like account, contact ...)
* If the schema of the organization modified then we need to regenerate Enterprise WSDL.
* It is suitable when we need to integrate only with one organization.
Partner WSDL:
-------------
* It is Loosely coupled WSDL.
* It is small WSDL which contains Generic information about schema of the organiztion (It doesn't include detail object information).
* If the schema of the organization modified then no need to create Partner WSDL again.
* It is suitable when we need to integrate with multiple organizations (Like sandbox, production).
SOAP API:
ReplyDelete---------
* We need to provide username and password for authentication while consuming WSDL which belongs to external application. (We should know their authentication details).
* After generating apex classes from WSDL then in those apex classes we should provide username and encrypted password (string s=encodingutil.base64Encode(b); like this).
* If we provide WSDL to access in external application then we need to provide our authentication (username and password) to external system.
Rest API is for another usage than Soap API
ReplyDelete-------------------------------------------
For data replication / sync, you have to use the Soap Api, beacuse you have dedicated verbs for this : getDeleted, get Updated, capability to query on deleted records...
Think about using the Rest Api for single record usage by a final user. For instance, if you are developing a mobile app, Rest Api would be appropriate.
hi how to get wsdl for google callender (I want ti get tasks created in google callender into salesforce callender)
ReplyDelete*** Web services (Concrete WSDL) - roughly***
ReplyDelete//Generated by wsdl2apex
//Paste and execute below code in developer console
/*BookrWs.BookWs stub = new BookrWs.BookWs();
stub.sessionHeader = new BookrWs.sessionHeader_Element();
stub.sessionHeader.sessionID = userInfo.getSessionID();
stub.insertBook('SOAP19','VASU',1000);*/
public class Bookrws {
public class LogInfo {
public String category;
public String level; public class CallOptions_element {
public String client;
private String[] client_type_info = new String[]{'client','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/schemas/class/BookWs','true','false'};
private String[] field_order_type_info = new String[]{'client'};
}
public class BookWs {
//we have to register this below url in remotesitesettings
public String endpoint_x = 'https://ap1-api.salesforce.com/services/Soap/class/BookWs';
}
}
}
*** Web services (Abstract WSDL)***
//Book class for creating WSDL files
global class BookWs {
webservice static void insertBook(String title,String author,Integer price) {
List blist = new List();
Book__c b = new Book__c();
b.Name = title;
b.Author__c = author;
b.Price__c = price;
blist.add(b);
//we can direcly insert record into model
//insert b;
//First after inserting values into the record we have to add record to the list
insert blist;
}
}
//Developer Console Code
/*BookWs.insertBook('SOAP','SRINU',500);*/
OpenId Connect with Salesforce:
ReplyDeletehttp://blog.force365.com/2014/04/02/salesforce-openid-connect/
To parse JSON object or URL: (Refer w3schools for syntax)
ReplyDeletehttp://jsonlint.com/
Similar to Salesforce -
ReplyDeletehttp://www.mendix.com/
http://oauth.net/documentation/getting-started/
ReplyDeleteIntegration Cloud: http://www.boomi.com/
ReplyDeleteSOAP API call out response will be always in XML format.
ReplyDeleteREST API call out response will be in XML or JSON format. Default response will be in JSON format.
Single Sing on and OAuth: (Good Demo)
ReplyDeletehttps://www.youtube.com/watch?v=kIA1MZrNaAE&noredirect=1
Difference between SOAP and REST API, Please refer the following link -
ReplyDeletehttp://spf13.com/post/soap-vs-rest
Named Credentials: if we create named credentials, we no need to check for different endpoints based on the organization.
ReplyDeleteAdvanced REST client ---> Chrome Plug in.
ReplyDeleteSalesforce disabling TLS 1.0 -
ReplyDeletehttps://help.salesforce.com/HTViewSolution?id=000221207&language=en_US
SOAP WSDL'S -
ReplyDeletehttp://www.jitendrazaa.com/blog/salesforce/consuming-external-webservice-in-apex/#viewSource
Critical Scenario:
ReplyDeleteDifficulty: For call out to parse the response for the different services taking around 25, 30, 20 sec.
Solution: Improved the performance by creating the POJO class for the each service, achieved around 80% performance (5,6,4,2 sec).
SSO with Salesforce as a Service Provider -
ReplyDeletehttp://www.jitendrazaa.com/blog/salesforce/step-by-step-guide-to-setup-federated-authentication-saml-based-sso-in-salesforce/
SOAP - BASIC AUTHENTICATION WITH USERNAME AND PASSWORD:
ReplyDelete// providing the cred inputs
createOrder.inputHttpHeaders_x=new Map();
String username = 'XXXX';
String password = 'YYYY';
Blob headerValue = Blob.valueOf(username + ':' + password);
String authorizationHeader = 'BASIC ' +EncodingUtil.base64Encode(headerValue);
createOrder.inputHttpHeaders_x.put('Authorization',authorizationHeader);
//invoking the webservice to send orders from Salesforce
callOutResponse=createOrder.MIOA_SFDC_to_SAP_Order(String input);
Hi How to get data from third party system and and store into salesforce custom object Automatically every week Monday IST 7AM. Using REST API.
ReplyDeleteCan you please help me and also provide me sample code for this scenario.
Write a Apex which will make a outbound and scheduled that Apex class using cron expression. Scheduled Apex.
ReplyDeletePublic Rest api service in Salesforce -
ReplyDeleteCreate Rest Api class and assign to guest user profile in the site.com wesite. which can be tested in postman json tools for rest api.
oAuth Username and Password flow -
ReplyDeletehttps://test.salesforce.com/services/oauth2/token
-----------------
Post operation.
body:
grant_type=password&client_id=myClientId&client_secret=myClientSecret&username=myUserName&password=myPassword
Headers:
contentType: application/x-www-form-urlencoded
which will give access token on success.
Exposing SOAP API to guest user -
ReplyDeletehttp://forceguru.blogspot.com/2012/09/creating-public-web-service-in.html
To mention the object type in soap wsdl -
ReplyDeleteurn:sObjects xsi:type="urn1:Account" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"