locked
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.


    Chintan

    Wednesday, June 6, 2012 2:55 PM

Answers

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

    http://msdn.microsoft.com/en-us/library/ms733901.aspx

    for the soap to be the same.

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


    http://webservices20.blogspot.com/
    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.

    Chintan

    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
    http://msdn.microsoft.com/en-us/library/ms731134

    #Interop between ASMX and WCF Services
    http://blogs.msdn.com/b/dotnetinterop/archive/2007/07/19/interop-between-asmx-and-wcf-services.aspx

     


    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