Activity Forums Salesforce® Discussions What are Enterprise and Partner WSDL in Salesforce?

  • shradha jain

    Member
    July 12, 2018 at 1:09 pm

    Hello Madhulika,

    1.  Enterprise WSDL-  It is one of the file that is provided by Salesforce. It is bound to Salesforce configuration of specific organisation. It is intended for customers.
    2.   Partner WSDL- It is another file provided by salesforce. It can be used  for  salesforce configuration of any organisation. It is intended for partners.

    Both the files are the XML document which describes how to communicate using a web service.

    • This reply was modified 6 years, 4 months ago by  shradha jain.
    • This reply was modified 6 years, 4 months ago by  shradha jain.
  • shariq

    Member
    September 18, 2018 at 1:21 am

    Hi,

    Enterprise WSDL

    Strongly typed, the object and its attributes are fixed.

    Contains the metadata about all standard and custom fields and objects.

    Can only be used against your Salesforce instance.

     

     

    Partner WSDL

    Is loosely typed, the object and its attributes can be variable.

    Does not contain metadata about objects and fields. Takes an array of key-value pairs.

    Can be used against many Salesforce.com organizations.

    Hope it helps.

  • Parul

    Member
    September 18, 2018 at 3:47 am

    Hi

    Enterprise WSDL:

    • The Enterprise WSDL is strongly typed, which means that it contains objects and fields with specific data types, such as int and string.
    • The Enterprise WSDL document is for customers who want to build an integration with their Salesforce organization only.
    • Customers who use the enterprise WSDL document must download and re-consume it whenever their organization makes a change to its custom objects or fields or whenever they want to use a different version of the API.

    Partner WSDL:

    • The Partner WSDL is loosely typed, which means that you work with name-value pairs of field names and values instead of specific data types.
    • This WSDL document is for customers, partners, and ISVs who want to build an integration that can work across multiple Salesforce organizations, regardless of their custom objects or fields.
    • The Partner WSDL is static, and hence does not change if modifications are made to an organization’s Salesforce configuration.

    Thanks

  • Parul

    Member
    September 18, 2018 at 3:49 am

    To add more points;-

     

    With the Partner WSDL, the client code can automatically adapt with no need for the Partner WSDL to be generated again and then run through client code generation tools. The client can also be used with different orgs because of this adaptability. The client code is harder to write but the solution typically requires less maintenance over time.

    With the Enterprise WSDL, field names and types and object names are hard wired into the generated WSDL and therefore into the generated client code. While this makes the client code easier to write, it also means the Enterprise WSDL and client code generation need to be redone when change happens. So good for working with a single org where nothing changes.

     

    Hope this will help you.

     

    Thanks

Log In to reply.

Popular Salesforce Blogs