我构建了一个连接到SQL Server数据库的.NET Web服务。有一个Web服务调用GetAllQuestions()不会改变。我将GetAllQuestions的结果保存到本地应用程序文件夹中的GetAllQuestions.xml中,并将其设置为内容。通常我会得到这样的Web服务的结果:Linq to SQL Web服务XML
var myService = new SATService();
var serviceQuestions = myService.GetAllQuestions();
我想尝试类似:
var serviceQuestions = File.Open("GetAllQuestions.xml");
任何建议都非常感谢!
我真的很想在本地使用Web服务结果,就像我在进行远程调用一样。 – Bryan 2010-04-03 06:41:01