我应该去的WCF或ASMX web服务 [英] Should i go for WCF or ASMX web service

查看:156
本文介绍了我应该去的WCF或ASMX web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站目前工作的 ASP.NET 1.1

老工艺

Old Process

在我们的数据库中,我们有大量的存储解码使用的数据。我们每星期更新这个庞大的数据集表(数据从一个供应商提供)。

In our database we have huge amount of data stored for a decoding purpose. We have to update this huge set of data table each week(Data is supplied from a vendor).

在我们的网站(asp.net 1.1),我们查询我们的数据库脱code的信息。

新工艺

New process

而不是将数据存储在我们的数据库中查询到现在,我们想通过Web服务来取代这个,的像现在的供应商正在提供我们一个DLL,这将给我们去codeD信息

Now instead of storing data in our database and query them, we want to replace this through the web service, AS now the vendor is supplying us a DLL, which will give us the decoded information.

在DLL信息由供应商提供的

Information on the DLL provided by the vendor

所提供的DLL,只能在4.0的网站增加。这样也impleies,我不能直接将DLL添加到我的1.1的网站。的 此DLL暴露出一定的方法,我们只需要加入我们的Web服务的DLL refernce并调用该方法,并获取所需要的信息。

The DLL provided, can only be added in 4.0 sites. SO that also impleies that i can not directly add the dll to my 1.1 site. This DLL is exposing certain methods, we simply have to add the DLL refernce in our web service and call the method and fetch the needed information.

这样,我们就不必存储在我们的数据库中的信息。

Thus we will not have to store those information in our database.

因此,这类型的Web服务的我应该去(ASMX或WCF),将使用由供应商提供的DLL文件,以获取德codeD信息??

的灵活性,我期待在Web服务有:

Flexibility i am looking for in the web service are:

  • 可以从 asp.net 1.1网站直接食用,也使用jQuery阿贾克斯
  • 可以从服务器
  • 在运行的其他Web服务消费
  • 这可以从服务器
  • 运行一些窗口服务消费
  • It can be consumed from asp.net 1.1 site directly and also using jQuery ajax.
  • It can be consumed from other web services running on the server.
  • It can be consumed from some windows services running from the server.

注意此外,我们有一个计划,我们的网站从asp.net 1.1迁移到4.0版本future.So它应该是这么多的支持,以便未来升级

推荐答案

如果我理解正确,你打算创建一个Web服务,是要引用由供应商提供的DLL,并返回去codeD数据您的asp.net 1.1的网站。

If I understand you correctly, you intend to create a Web Service that is going to reference the DLL provided by the vendor and return the decoded data to your asp.net 1.1 website.

我会认真地建议你去一个WCF Web服务,它面向.NET 4.0框架。相信我,这是怎么回事,从长远来看,以回报。此外,的.asmx Web服务是根据MSDN(请随时咨询MSDN)被认为是过时的技术。 来吧与WCF,不要一开始就处​​于劣势!

I would seriously suggest you to go for a WCF web service as it targets the .NET 4.0 Framework. Believe me it is going to payoff in the long run. Moreover, .asmx web services are considered a legacy technology according to the MSDN (feel free to consult the MSDN). Go ahead with WCF, do not start with a disadvantage!

这篇关于我应该去的WCF或ASMX web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆