• Post Reply Bookmark Topic Watch Topic
  • New Topic

detecting webservice methods signatures  RSS feed

 
Yahya Elyasse
Ranch Hand
Posts: 510
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm searching for an elegant solution for the following problem:

My application is a webservice client that will consume a webservice with some methods.
let's suppose service interface has methods :

my application will parse a String stream and figure out what method to call .if for example the string pattern is :
then i'll need to call method :
I need to know what is an elegant and clean why to implement this feature. Note that i don't know the webservice methods signatures in advance!
I guess i'll have to use java Reflection. I'm not sure what is a good solution for this problem .
thanks for your help.
 
Vinod K Singh
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use Reflection API to invoke the appropriate method on the web service client interface.
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's the reason WSDL was invented - to describe the service.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!