WEB SERVICE ,BeginInvoke异步调用,急在线等,立给分!
那位朋友对WEB SERVICE ,BeginInvoke异步调用比较熟,遇到奇怪问题WEBservice 正常,可以在IE手工调试下正常使用,但程序 BeginInvoke异步调用时,运行到BeginLogOn就直接跳走了,没有运行其下面的return ..运行代码如下:
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute(" http://localhost:19496/LogOn", RequestNamespace=" http://localhost:19496/", ResponseNamespace=" http://localhost:19496/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public int LogOn(string userid, string password, bool WriteDog) {
object[] results = this.Invoke("LogOn", new object[] {
userid,
password,
WriteDog});
return ((int)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginLogOn(string userid, string password, bool WriteDog, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("LogOn", new object[] {
userid,
password,
WriteDog}, callback, asyncState);
pkman(124086091) 22:08:01
局部变量: