Hi Massimo,
the default constructor without any parameters is needed to automatically
instanciate an object of the service class. If you want to initialize your
service use the JAX-RPC ServiceLifecycle Interface.
public class MyService implements ServiceLifecycle {
public void init(Object context) { ... }
public void destroy() { ... }}
}
Thomas
> -----Ursprungliche Nachricht-----
> Von: Massimo Barabino [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 29. August 2003 17:01
> An: [EMAIL PROTECTED]
> Betreff: Passing parameters to constructor
>
>
> Hi all,
> does anybody know if there is a way to pass parameters to the
> constructor of the java class invoked by axis (I'm using 1.1)?
>
> I' ve seen the constructor is always called. If the constructor doesn' t
> require any parameter it is executed and everything goes fine. If the
> constructor requires parameters I get a fault code when I invoke the
> service.
> Can anybody help me?
> Thanks in advance
>
> Massimo Barabino
>