tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bharath Ganesh <bhar...@apache.org>
Subject Re: How to publish overloaded method in web service
Date Tue, 19 May 2009 10:07:03 GMT
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.maaku@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.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message