+ Start a Discussion
naveen kunurunaveen kunuru 

an interview question

a guy ask me which wsdl did u use in SOAP ,then i said partner wsdl ,
then he said y?
so lads ,when should we need to use partner wsdl
ans when should we use enterprise wsdl 
thanks
Mudasir WaniMudasir Wani
Hi Naveen,

Enterprise WSDL:
a) The Enterprise WSDL is strongly typed.
b) The Enterprise WSDL is tied (bound) to a specific configuration of Salesforce (ie. a specific organization's Salesforce configuration).
c) The Enterprise WSDL changes if modifications (e.g custom fields or custom objects) are made to an organization's Salesforce configuration.

For the reasons outlined above, the Enterprise WSDL is intended primarily for Customers.

Partner WSDL:
a) The Partner WSDL is loosely typed.
b) The Partner WSDL can be used to reflect against/interrogate any configuration of Salesforce (ie. any organization's Salesforce configuration).
c) The Partner WSDL is static, and hence does not change if modifications are made to an organization's Salesforce configuration.

For more information have a look on 
https://help.salesforce.com/apex/HTViewSolution?id=000004760&language=en_US (https://help.salesforce.com/apex/HTViewSolution?id=000004760&language=en_US)

Don't forget to select best answer to make our efforts visible in the developer forum.
Please mark this as solution by selecting it as best answer if this solves your problem, So that if anyone has this issue this post can help