当使问题的Web服务作为替代DLL [英] problems when make a web service as an alternative to dll

查看:128
本文介绍了当使问题的Web服务作为替代DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问:

最近,我遇到了一些问题,我有很多的应用程序的常见一个dll,任何改变这个DLL需要构建它,复制并粘贴在这些应用中的每一个bin文件夹,并添加新的参考,因此我决定把这个DLL转换为一个Web服务中代替克服这种超负荷..
我做一个Web服务应用程序包含组Web服务(映射到每个类)。

Recently , i face some problems, i have a dll common among a lot of applications,and any change to this dll require to build it, copy and paste it in each bin folder of these applications ,and add the new reference so i decided to convert this dll to a web service in stead to overcome this overload.. I make a web service application contains set of web services(mapping to each class).

我在这里遇到了一些问题:

I face some problems here:


  • 在原始的dll文件,还有
    类使用其他方法存在
    在相同的dll类,我面对的问题,当我
    试图使用Web服务方法
    其他Web服务class.how修复
    这一问题。

  • In the original dll, there are classes use methods exist in other classes in the same dll, and i face problems when i tried to use web service methods in other web service class.how to fix this problem.

在原始的dll文件在那里设立
静态类静态
methods.how使在相当于
我的Web服务应用程序。

In the original dll there are set of static classes with static methods.how to make the equivalent in my web service application.

任何重载方法会导致问题
在我的Web服务。

Any overload method cause a problem in my web service.

在使用词典<字符串,字符串>
在我的方法的参数。

When using Dictionary<string, string> as a parameter in my method.

注意:原始 DLL 包含了数据库的连接。是将其转换为Web服务是最佳的解决方案吗?哪一个是我的情况下,Web服务或dll的更快吗?我应该倾向于 WCF 不是?

Note:the original dll contains the connections to the data base. Is converting it to web service is the optimum solution?which one is faster in my case a web service or the dll?Should i tend to WCF instead of?

先谢谢了。

推荐答案

在我的应用我通常在同一个解决方案的所有相关的项目。但是,当我需要使用跨应用程序的项目,我更换了一个dll引用该项目。

In my applications I usually have all related projects in the same solution. But when I need to use projects across applications I replace the project for a dll reference.

由于我使用Subversion我解决了通过增加一个外部属性复制DLL的问题,做我的libs文件夹,引用的DLL的版本。

Because I use Subversion I solve the problem of copying the dll by adding an external property do my libs folder, referencing the build of the dll.

如果外部dll是非常往往比你可能需要一个持续集成系统来处理,对于你更新。

If the external dll is updated very often than you probably need a continuous integration system to handle that for you.

这篇关于当使问题的Web服务作为替代DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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