M
Mark Ingram
Hi, if I have the following class:
[WebService(Namespace = "http://www.softease.com/Podium")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class MyWebService : System.Web.Services.WebService
{
private String m_name;
[WebMethod]
public String SayHello(String name)
{
m_name = name;
return "Hello " + m_name;
}
[WebMethod]
public String SayGoodbye()
{
return "Goodbye " + m_name;
}
}
That won't work will it? Because WebService's are stateless? Even though
I keep an instance of the web service on my client.
So how can I store information, such as a username? I know I can use the
Session object, but I was lead to believe that it isn't best to use the
Session object in web services??
Any help is much appreciated.
Cheers,
[WebService(Namespace = "http://www.softease.com/Podium")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class MyWebService : System.Web.Services.WebService
{
private String m_name;
[WebMethod]
public String SayHello(String name)
{
m_name = name;
return "Hello " + m_name;
}
[WebMethod]
public String SayGoodbye()
{
return "Goodbye " + m_name;
}
}
That won't work will it? Because WebService's are stateless? Even though
I keep an instance of the web service on my client.
So how can I store information, such as a username? I know I can use the
Session object, but I was lead to believe that it isn't best to use the
Session object in web services??
Any help is much appreciated.
Cheers,