Susantha,

One more tip, you can differentiate between the methods by checking their signature 
(see details
at http://java.sun.com/docs/books/tutorial/native1.1/implementing/method.html). For 
example the
following 3 methods:

public int Add(int a, int b);           - Can be represented as "Add(II)I"      
public long Add(long a, long b);        - Can be represented as "Add(JJ)J"
public double Add(double a, double b);  - Can be represented as "Add(DD)D"

If you are willing to patch Axis code to be able to distinguish between methods like 
this, just
follow normal patch process
(http://nagoya.apache.org/wiki/apachewiki.cgi?AxisProjectPages/SubmitPatches)

Thanks,
dims

--- Davanum Srinivas <[EMAIL PROTECTED]> wrote:
> Susantha,
> 
> There is no way to do this right now....See getSyncedOperationsForName method in
> ServiceDesc.java
> for details on how we implement the restriction. Maybe you can come up with a patch 
> for the new
> feature.
> 
> Thanks,
> dims
> 
> --- susantha <[EMAIL PROTECTED]> wrote:
> > Hi all,
> > 
> > I have a class with a set of overloaded methods and I want to export few of
> > those methods as a web service
> > 
> > Ex:-
> > 
> > class MyClass
> > {
> >     public int Add(int a, int b);         <---- method1
> >     public Point Add(Point a, Point b);   <---- method2
> >     public Square Add(Square a, Square b);<---- method3
> > }
> > 
> > say I want to export only method2 as a web service.
> > 
> > So in my wsdd file if I set AllowedMethods = "Add" all 3 methods will be allowed.
> > How do I make only the method2 exported ?.
> > 
> > Thanks,
> > 
> > Susantha.
> > 
> > ---------------
> > Lanka Software Foundation  (http://www.opensource.lk.)
> > Promoting Open-Source Development in Sri Lanka.
> > ---------------
> 
> 
> =====
> Davanum Srinivas - http://webservices.apache.org/~dims/
> 
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 


=====
Davanum Srinivas - http://webservices.apache.org/~dims/

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

Reply via email to