• Post Reply Bookmark Topic Watch Topic
  • New Topic

No of methods that can be exposed in single service?

 
Raguraman Thiru
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Is there any limit on no. of methods that can be exposed in a single service? Im using axis2 webservice and i need to know this information.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using copy/paste it should be quite quick to set up a sizable number of methods, and thus test some practical limits.

What prompted the question? My gut feeling is that -if it is the perceived need to have a large number of methods- there may be other (possibly better) approaches to the overall design.
 
Kesava Krishna
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Raghu,

There isn't any limitation on the number of methods that will be exposed as webservice. But you need to abstract those methods implementation using interface.
From a developer perspective to maintain the quality of code we need to put the number low.

Thanks,
Kesava
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kesava Krishna wrote:There isn't any limitation on the number of methods that will be exposed as webservice.

That depends on how it is implemented. Often the methods that make up a WS API are implemented in a single class, and there are upper limits on how many methods you can have in a class, and how big a class file can become. I agree that if someone bumps into these limits then the underlying design is not sound. But we haven't heard from Raguraman Thiru what prompted this question, so speculation about that is premature.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!