• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to call service method  RSS feed

 
james edwin
Ranch Hand
Posts: 393
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a web service method in java which accepts no arguments.I have a written client in Java too.But i looked for methods invoke under Call interface,i found there overloaded methods which accepts parameter,but no method which doesn't accept any parameter.

My question is how can i call a web service method(which takes no arugument) in Java client through JAX-RPC.
 
Rr Kumaran
Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
that is a thought proviking question. i have not tried below code but you can give a try:

Object[] params = new Object[] {};
.. = (.. ) call.invoke(params);
 
james edwin
Ranch Hand
Posts: 393
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well anyhow you are passing blank parameter in method call.

Suppose we have method called "getListSummary()",which is exposed through web service interface. I want to call this method through JAX-RPC (Java code)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!