vairamuthu thayapavan wrote:

hi
i think u mean the ws classes in axis. for that 1st specify a default
constructor with out any parameter. then specify ur constructor with
required parameter.
-
thayapavan


Hi,
Thanks a lot for the replies.
Maybe I need to be more specific with what I mean as "the constructor of the java class invoked by axis". Suppose my Service just consists of one simple class as follows.


public class MyClass{
   private int a=0;
   private int b=0;

   public MyClass(){
       this.a=1;
       this.b=2;
   }

   public int callMe{
       return a+b;
   }

}

If the constructor remains as I wrote, everithing goes OK. As I change it as follows I get fault codes

...

public MyClass(int a, int b){
       this.a=a;
       this.b=b;
   }
...

This is my problem. (may be Thomas' and your replies already apply to this...)

Thanks once again

Massimo Barabino




Reply via email to