I assume you use JAX-WS in which case you could customize the WSDL operation name (in the generated WDL) with the @WebMethod annotation.
e.g. @WebMethod(operationName="doSomething") public int doSomething() @WebMethod(operationName="doSomethingMore") public int doSomething(int more) Thanks, Bharath On Tue, May 19, 2009 at 5:18 PM, Maaku <romongo.ma...@gmail.com> wrote: > > I have an overloaded method in my class and I want to expose this as a web > service. When I try it I get > > java.lang.IllegalArgumentException: An operation with name > [{http://xxx.com/wsdl}getLocations <http://xxx.com/wsdl%7DgetLocations>] > already exists in this service > > Is there a way to fix this without renaming one of the methods? Thanks > -- > View this message in context: > http://www.nabble.com/How-to-publish-overloaded-method-in-web-service-tp23612575p23612575.html > Sent from the OpenEJB User mailing list archive at Nabble.com. > >