• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

webservice  RSS feed

 
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi


I am new to web serices.

I am trying to execte Calculator program using wsad5.1.

I creates small class and generating wsdl file using wsad.

But i dont know how to write client program .

this is the Calculator.java file

public class Calculator {
public int add(int a, int b) {

return a+b;
}
public int mul(int a, int b) {

return a*b;
}
public int div(int a, int b) {

return a/b;
}
public int sub(int a, int b) {

return a-b;
}
}


Can any body tell us how to write client program ?
 
Rancher
Posts: 42974
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Axis ships with a simple Calculator service and client with source code. It's in the samples\userguide\example2 directory. It uses the org.apache.axis.* classes, but it should be fairly easy to change those to use the JAX-RPC classes, if you need to.
 
I'm a lumberjack and I'm okay, I sleep all night and work all day. Lumberjack ad:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!