Skip to main content
Hi All,

Why do we write webservice classes when there is enterprise and partner wsdl? I would like to know in what scenario we write webservice classes instead of enterprise and partner wsdl. Can anyone explain me with real time example.
5 Antworten
  1. 8. Aug. 2016, 11:45
    Hi sai sankar 4,

    salesforce provides enterprise and partner wsdl for integration. But you have to write your own web service class when we need to expose a business logic that can be called by the other system.

    For ex: consider you wrote a class for adding two numbers in apex and now this method should be called by an external system. so in that you will make it as a web service.

    and another scenario where you need to send the customized response to the caller rather than what is provided by using standard salesforce wsdl and sometimes you need to access multiple objects to do the calculations which is not provided by standard WSDL.

    Hope it gives you an idea about why we are wrtiting custom webservices.

    Thanks

    Nag

     
0/9000