• Post Reply Bookmark Topic Watch Topic
  • New Topic

webservice  RSS feed

 
Graham Thorpe
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 ?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!