How much effort is required to convert an ASMX to WCF web service?

后端 未结 2 1365
时光说笑
时光说笑 2020-12-05 02:50

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 assembl

相关标签:
2条回答
  • 2020-12-05 03:50

    Check out some of those blog posts and articles on how to do it:

    • Migrating ASMX to WCF (unfortunately, this link in no longer valid)
    • Phased Migration From ASMX to WCF
    • ASMX to WCF migration

    and many more - search for "Migration ASMX to WCF" and you'll get a ton of hits

    Marc

    0 讨论(0)
  • 2020-12-05 03:53

    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!

    0 讨论(0)
提交回复
热议问题