多少努力,需要转换的ASMX到WCF Web服务? [英] How much effort is required to convert an ASMX to WCF web service?

查看:128
本文介绍了多少努力,需要转换的ASMX到WCF Web服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有共约6 Web方法2 Web服务,大部分code是OFC坐在集会任何方式和Web服务的ASMX其实只是调用这些组装方法和返回他们的返回类型。

I have 2 web services with about 6 web methods in total, most of the code is ofc sitting in assemblies any way, and the web service asmx is really just calling these assembly methods and returning their return type.

多大的努力是它的网络服务从ASMX转换为WCF?

How much effort is it to convert the web services from ASMX to WCF?

我pretty多在此阶段控制的唯一 - 连接到Web服务的非基于网络的客户端,所以这不是一个真正的问题,产品在prelaunch。

I pretty much at this stage control the only - non web based clients connecting to the web services, so this is not really a problem, product is in prelaunch.

推荐答案

您会发现它非常简单的转换 - 特别是如果你现有的网络ASMX方法只是调用到其他类。刚刚从Visual Studio中创建一个新的WCF服务 - 这样,你仍然有你的现有的Web服务不变。它会自动创建一个HTTP终点为你,所以你可以只转储它直接进入IIS(一点点的配置)。你需要描述你的DataContract类,但它平凡的很简单。

You should find it extremely simple to convert - especially if your existing asmx web methods are just calling into other classes. Just create a new WCF Service from Visual Studio - that way you still have your existing web services intact. It will automatically create an http end-point for your so you can just dump it straight into IIS (with a little configuration). You will need to describe your DataContract classes but that it trivially simple too.

最近,我这样做,这是一个喜悦!

I did this recently and it was a joy!

这篇关于多少努力,需要转换的ASMX到WCF Web服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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