-
1. Re: Service Method Overloading
kcbabo Jun 20, 2012 5:47 AM (in response to edevera)No, operation names need to be unique in your service interface. Operation overloading is prohibited by WS-I Basic Profile as well:
http://ws-i.org/profiles/basicprofile-1.2-2010-11-09.html#Distinctive_Operations
cheers,
keith
-
2. Re: Service Method Overloading
mashama Dec 11, 2012 10:25 AM (in response to kcbabo)Hi Keith,
Would it not be possible for the operation names to represented as "operationA" and "operationB" or perhaps "operation(A)" and "operation(B)" within the SwicthYard context?
Regards,
Mashama
-
3. Re: Service Method Overloading
kcbabo Dec 11, 2012 4:40 PM (in response to mashama)Hey Mashama,
The main reason we do this is for consistency across all interface types. Each of the interface types we support reduce down to the same generic metadata model which includes a list of operations keyed by operation name. While it's true that we could generate a unique name from a source interface like a Java class with overloaded methods, my gut tells me that this will lead to confusion down the road. Ideally, the operation name will clearly communicate the function of the service operation and operations which take different message types will clearly reflect that.
regards,
keith