---
schema_version: "1"
id: ae8b654c6a87acc9c952686e5ab1f57d8f45b902c2dd0cf6caf2ce5dbe90c9c6
title: Overloading Web Service Methods
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexcode/apex_web_services_methods_overloading.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_web_services_methods_overloading.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 39b08e46838508609999fbfb60a76d37b9240dd2501613a7f444c4fad7a5f395
---
# Overloading Web Service Methods

SOAP and WSDL 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.