I put my initialization code (ex. DataSource.ConnectionString definition
etc...) in the public Service() method: diring a debug I noticed that that
method is called at every call of a WebMethod so now I think that that is not
the "right" place where to put any initialization ... but where is the right
metghod that perhaps I need to overload?
Thanks
Enzo
Tony - 28 Oct 2006 05:12 GMT
I create a different static class to hold on to things. The web methods can
reference static methods and properties on the static class to get
information such as connection strings and other state information you want
to hold onto.
Tony
>I put my initialization code (ex. DataSource.ConnectionString definition
> etc...) in the public Service() method: diring a debug I noticed that that
[quoted text clipped - 6 lines]
> Thanks
> Enzo