Click to See Complete Forum and Search --> : Webservice related


Vinod S
September 29th, 2006, 06:24 AM
I have created a webservice for my application. I am usig some helper classes for formating, database operations like this.

Now my confution is that where i should declare the objects of these classes.

some of functions using database helper, some other usses some other objects.

so will it be benifitable for me if i declare these classes in class scope and member variable. or its better to create the objects in individual classes

i want to know how the web service works, will the object of web service get instantiated each time i call a webservice function. or the web service will loadded in the server memmory and i am getting the copy of function when i call the function. cal any one give me the idea about execution of a webservice.

another doubt may be too silly :)

whats a good method for initializing a string variable.

string sMessage = null ;

or

string sMessage = "" ;