• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

how to call service method

 
Ranch Hand
Posts: 393
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
reply
    Bookmark Topic Watch Topic
  • New Topic