instantiating an object from a web service vs instantiating an object from a regular class

后端 未结 3 1860
礼貌的吻别
礼貌的吻别 2021-01-05 16:30

I have a very basic web service:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace          


        
3条回答
  •  一向
    一向 (楼主)
    2021-01-05 17:15

    webservice instance is destroyed at the end of each method call, so that's why you always get the same result. You need some way to persist that value.

提交回复
热议问题