Answered by:
oData or SOAP, which one is better CRM 2011 ?

Question
-
Hi All,
I was wodering which one gives better performance oData or SOAP whist firing the same query? Which one is better in terms of performance?
Thanks VaibhavFriday, October 7, 2011 10:15 AM
Answers
-
As Javeed suggests REST has better performance but REST is only subset crm functionality.
There are few things to consider
Rest does not have formattedValues so you wont get optionset text in addition to optionset values like 1,2,3
Soap have that functionality, you don't have to send second soap metadata request to get the labels.FormattedValues supports optionsets,currency, float, number etc.
Another thing I noticed is Rest doe not support activity parties, if you working with emails etc, it will return just email address not entity reference like in soap, In soap you will guid of the user or contact etc.
Performance wise REST is better.
I hope this helps.
Amreek singh Senior CRM Consultant CDC Praxa Sydney,Australia http://mscrmshop.blogspot.com/- Edited by Amreek Singh Friday, October 7, 2011 2:11 PM
- Proposed as answer by Amreek Singh Friday, October 7, 2011 2:11 PM
- Marked as answer by Vaibhav Tiwari Friday, October 7, 2011 2:19 PM
Friday, October 7, 2011 2:09 PM -
Hi,
REST has better performance because it bears minimal overhead on top of HTTP. Usually SOAP brings with it a stack of handlers and parsers. The performance difference is not very much, but REST is more easy to use and does not have any server side sessions. oData is only recommended if retrieving fewer then 50 records and you do not want to perform the join with related entities, it is easier to manage but it has limitations in Dynamics CRM.
Jehanzeb Javeed
http://worldofdynamics.blogspot.com
Linked-In Profile |CodePlex Profile
If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".- Proposed as answer by Jehanzeb.Javeed Friday, October 7, 2011 12:37 PM
- Marked as answer by Vaibhav Tiwari Friday, October 7, 2011 2:18 PM
Friday, October 7, 2011 12:37 PM
All replies
-
Hi,
REST has better performance because it bears minimal overhead on top of HTTP. Usually SOAP brings with it a stack of handlers and parsers. The performance difference is not very much, but REST is more easy to use and does not have any server side sessions. oData is only recommended if retrieving fewer then 50 records and you do not want to perform the join with related entities, it is easier to manage but it has limitations in Dynamics CRM.
Jehanzeb Javeed
http://worldofdynamics.blogspot.com
Linked-In Profile |CodePlex Profile
If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".- Proposed as answer by Jehanzeb.Javeed Friday, October 7, 2011 12:37 PM
- Marked as answer by Vaibhav Tiwari Friday, October 7, 2011 2:18 PM
Friday, October 7, 2011 12:37 PM -
As Javeed suggests REST has better performance but REST is only subset crm functionality.
There are few things to consider
Rest does not have formattedValues so you wont get optionset text in addition to optionset values like 1,2,3
Soap have that functionality, you don't have to send second soap metadata request to get the labels.FormattedValues supports optionsets,currency, float, number etc.
Another thing I noticed is Rest doe not support activity parties, if you working with emails etc, it will return just email address not entity reference like in soap, In soap you will guid of the user or contact etc.
Performance wise REST is better.
I hope this helps.
Amreek singh Senior CRM Consultant CDC Praxa Sydney,Australia http://mscrmshop.blogspot.com/- Edited by Amreek Singh Friday, October 7, 2011 2:11 PM
- Proposed as answer by Amreek Singh Friday, October 7, 2011 2:11 PM
- Marked as answer by Vaibhav Tiwari Friday, October 7, 2011 2:19 PM
Friday, October 7, 2011 2:09 PM -
To add to above mentioned points I have also found that REST in CRM works only with PhysicalNames for Entity and Attributes where as SOAP works with LogicalNames.
Not a major impact but something to be aware of...
HTH
makeer | myencounterwithcrm.wordpress.comFriday, October 7, 2011 7:11 PM