WCF响应时间缩短

时间:2013-05-16 10:10:42

标签: .net wcf web-services soap asmx

我有第三方网络服务。当我点击使用Soap UI时,respose时间仅为800毫秒。但是,当我通过代码运行它 e.g

stopWatch.Start();
WCFSERV.ServiceCommitment[] service_commitments = new WCFSERV.Service().GetServiceCommitments(mailProperties);
stopWatch.Stop();

// Get the elapsed time as a TimeSpan value.
label1.Text= stopWatch.Elapsed.ToString();

这将是24秒。我在这做错了什么?我们如何才能提高绩效?

0 个答案:

没有答案