紧急,应用程序调用webservice时出的问题
我的webservice如下:
public string ID="";
....
[WebMethod(EnableSession=true)]
public string GetID()
{
return this.ID;
}
[WebMethod(EnableSession=true)]
public void SetID(string str)
{
this.ID = str;
}
...
用asp.net调用它的时候,
myService.SetID("hehe")
则myService.GetId() == "hehe
而在用c#写的应用程序客户端如此调用
myService.SetID("hehe");
string str myService.GetId();
则str==null
请教达人,不知什么原因啊~~~