G
Guest
I have a web service with several methods in it. When the user creates an
instance of this WS, I want to pass parameters to the instance:
localhost.WSdemographics myClass= new localhost.WSdemographics(string
Username, string Password);
Once the user creates this instance, then they can use the actual methods in
the service:
DataSet my DS = myClass.GetNames(int RecordGroup);
But when I go to create the instance of 'myClass' I do not get the 2
parameters in the intellisense. It wont even build, b/c it says the class
does not take parms, yet its defiend as
public class WSdemographics : System.Web.Services.WebService
{
public WSdemographics(stringUserName,string Password)
{
...
}
....//WebMethods
....
}
I dont want to have to pass the userName and Password to every moethod in
the service, just at the point its reference. Why cant this be done?
instance of this WS, I want to pass parameters to the instance:
localhost.WSdemographics myClass= new localhost.WSdemographics(string
Username, string Password);
Once the user creates this instance, then they can use the actual methods in
the service:
DataSet my DS = myClass.GetNames(int RecordGroup);
But when I go to create the instance of 'myClass' I do not get the 2
parameters in the intellisense. It wont even build, b/c it says the class
does not take parms, yet its defiend as
public class WSdemographics : System.Web.Services.WebService
{
public WSdemographics(stringUserName,string Password)
{
...
}
....//WebMethods
....
}
I dont want to have to pass the userName and Password to every moethod in
the service, just at the point its reference. Why cant this be done?