Steve,
 
In that case, you may have too many fine-grained, atomic services vs a coarse-grained business service. From the managebility standpoint, having too many fine-grained services , nightmare, unless you embrace Web Services Management platform.


Steve Sanden <[EMAIL PROTECTED]> wrote:
Yes .. you can overload methods in your service and I've found it useful in several cases.
But as practice I like to define the method name in such a way that best describes what action
it's performing.   
-----Original Message-----
From: JEFF EMMINGER [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 11, 2004 1:50 PM
To: '[EMAIL PROTECTED]'
Subject: overloaded methods?

hi all,

can I have an overloaded method in my webservice, or will I need to create two separate methods?

e.g.

  public Element getFoo(String date);
    and
  public Element getFoo(String from, String to);

or

  public Element getFooByDate(String date);
    and
  public Element getFooByDateRange(String from, String to);

thanks,
jeff






CONFIDENTIAL NOTICE: This email including any attachments, contains
confidential information belonging to the sender. It may also be
privileged or otherwise protected by work product immunity or other
legal rules. This information is intended only for the use of the
individual or entity named above.  If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or the taking of any action in reliance on the contents
of this emailed information is strictly prohibited.  If you have
received this email in error, please immediately notify us by
reply email of the error and then delete this email immediately.


Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.

Reply via email to