Things to consider migrating from ASMX to WCF RRS feed

  • Question

  • Hello,

    Does it matter to consumer whether we use ASMX or WCF Web Services? Right now I am using ASMX Web Services and would like to develop next Web Service using WCF, how can it impact Consumers and what are the most important things to consider when doing this? I believe if it's not going to make any difference to the generated WSDL, I think WSDL will be same for both cases.


    Wednesday, June 6, 2012 2:55 PM


All replies

  • The WSDL (contract) is just one part. Howe the message looks on the wire (SOAP) is also important.

    If you want the WCF service to be wire compatible with an asmx service then first use basicHttpBinding. Then you should also use the xmlserializer


    for the soap to be the same.

    I suggest you take one operation and do a POC to verify your clients do not break.

    WCF Security, Interoperability And Performance Blog

    Wednesday, June 6, 2012 3:25 PM
  • Thanks Yaron for the answer, since this is going to be the whole new web service, my plan is to do it with WCF as well as with ASMX and see how its looking. Will give you update soon here.


    Wednesday, June 6, 2012 3:39 PM
  • Hi Chintan,

    And WCF service supports interopability with traditional ASMX webservices as long as the WCF service uses some ASMX compatible binding configuration (such as basicHttpBinding and soap11 or 12 message version). Here are some msdn articles and blogs discussing on this:

    #How to: Configure WCF Service to Interoperate with ASP.NET Web Service Clients

    #Interop between ASMX and WCF Services


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. Putting communities in your palms. Launch the browser on your phone now, type aka.ms/msforums and get connected!

    Thursday, June 7, 2012 2:31 AM