function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
EswerEswer 

webservices

how to achieve overloading in webservice in salesforce

Navatar_DbSupNavatar_DbSup

Hi,

 

WSDL and SOAP do not provide good support for overloading methods. Consequently, Apex does not allow two methods marked with the webService keyword to have the same name. Web service methods that have the same name in the same class generate a compile-time error.

 

for more detail follow the below link:

 

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_web_services_methods_overloading.htm

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.