sticky
WSE is Obsolete - Use Only If Necessary

    Discussion générale

  • To my fellow Web Service Developers:

    I have repeatedly encountered developers who learn about WSE (Web Service Enhancements) through Google or some other search engine. In many cases, they were not searching for WSE, but instead were searching for "web service security" or "web service outside of IIS". Because the search turned up a WSE article, some of these developers are starting off with WSE when they don't need to.

    I want to make clear what I so frequently have to repeat: WSE is obsolete. It has been replaced by WCF (Windows Communication Framework). WSE is not supported by Visual Studio 2008 or above. This should give you an idea about how Microsoft thinks about WSE. If your project is at all important, and if you expect it to last more than a few months, then you will not be doing yourself any favors by depending on this obsolete software.

    WCF is supported by .NET 3.0 and above, though your best option would be .NET 3.5 SP1. Some organizations will not upgrade to .NET 3.5 because they are concerned about the impact on their existing .NET 2.0 applications. There is little need for concern: .NET 3.5 SP1 consists of .NET 2.0 SP2 and some additional assemblies that are not used by your existing .NET 2.0 applications. It will also not change your IIS script mappings the same way the upgrading from .NET 1.1 to .NET 2.0 did.

    Obviously, if you are working on an existing WSE application, then you should upgrade to WSE when you get a chance, but should continue to maintain your application until you upgrade. A small number of you will have no choice but to use WSE for new applications; perhaps you must still support Windows 2000. If you have no choice but to use WSE, then feel free to post your WSE questions in this forum. I have found that WSE questions are answered more quickly if you put "WSE" into the subject of the question.

    Good Luck to All,
    John Saunders

    Microsoft MVP, Connected Systems
    (See https://mvp.support.microsoft.com/profile/john.saunders/)

    John Saunders
    Use File->New Project to create Web Service Projects
    Use WCF for All New Web Service Development, instead of old ASMX or obsolete WSE
    mardi 2 juin 2009 00:20
    Modérateur

Toutes les réponses

  • Excellent post, John, and thank you for putting this out there.

    Regards,

    Ed
    mardi 2 juin 2009 23:08
  • Thanks John, This information really helps.
    mardi 16 juin 2009 06:48
  • Thanks John,But I think we can implement WSE in 2008 also

    Gyanendra (Bank of America)
    lundi 28 septembre 2009 04:35
  • No, you can't. Not in the IDE, and it's not supported in VS2008 or above.

    If you find out how to do it, post the information here.

    John Saunders
    WCF is Web Services. They are not two separate things.
    Use WCF for All New Web Service Development, instead of legacy ASMX or obsolete WSE
    Use File->New Project to create Web Service Projects
    lundi 28 septembre 2009 17:54
    Modérateur
  • Thanks John for sharing your insights with us.

      When you say "Not in the IDE" , I don't understand I'm just reading your post fresh after completing a sample application[Webservice .asmx and its client] using WSE 2.0 SP2 on a .NET 2.0 WebServices application developed completely in VS 2008 . It was simply straightforward .

    SnapShot [.jpeg] of What I've done

    Pls correct me if was wrong .

    Anand

     

     

    samedi 10 octobre 2009 08:27
  • I keep finding WSE 3 by doing searches for inside MSDN for MTOM as well as various error messages.  Without a timely posting such as this I can't tell that I'm wasting time.  Thanks for the posting.
    jeudi 19 novembre 2009 21:17
  • I too was just about to delve into WSE. I thought WCF was about wrestling until I found this post - LOL. Thanks.
    Internet Alarm Monitoring web sites in ASP.Net
    samedi 28 novembre 2009 14:41
  • Thanks John.

    I was actually starting to read up on WS-* and its applications in .NET.  That is how I stumbled on WSE3.

    WS-* http://www.infoq.com/articles/ws-standards-wcf-bustamante
    lundi 11 janvier 2010 15:37
  • Yes, you were wrong to help your fellow developers to waste their time with obsolete software.  While their competitors are quickly developing good software using WCF, those who follow your path will be running as fast as they can to stay in one place with the obsolete WSE.

    John Saunders
    WCF is Web Services. They are not two separate things.
    Use WCF for All New Web Service Development, instead of legacy ASMX or obsolete WSE
    Use File->New Project to create Web Service Projects
    lundi 11 janvier 2010 16:59
    Modérateur
  • John, perhaps you have some references that bridge the learning gap between WCF ans WS-* ?
    lundi 11 janvier 2010 17:27
  • Note that WSE and WS-* are not related, except that various versions of WSE implement various versions of some of the WS-* standards.

    Really, the best thing to do is to just leap into WCF. The basics of it are quite simple. You can implement a simple "Hello, world" service that implements WS-Security simply by adding a "WCF Service Project" to your solution.

    The WCF learning center is at http://msdn.microsoft.com/wcf/.

    John Saunders
    WCF is Web Services. They are not two separate things.
    Use WCF for All New Web Service Development, instead of legacy ASMX or obsolete WSE
    Use File->New Project to create Web Service Projects
    lundi 11 janvier 2010 17:37
    Modérateur
  • So WS-* protocols are implemented into WCF?  That's cool.

    lundi 11 janvier 2010 17:55
  • WSE was an interim product intended as a way to implement the WS-* protocols until WCF was available. WCF has been evailable for over three years now, and implements more of the WS-* protocols that WSE did.

    John Saunders
    WCF is Web Services. They are not two separate things.
    Use WCF for All New Web Service Development, instead of legacy ASMX or obsolete WSE
    Use File->New Project to create Web Service Projects
    lundi 11 janvier 2010 18:08
    Modérateur
  • I found the WCF samples


    lundi 11 janvier 2010 19:04
  • Good luck, and you can also get some help over on the WCF forum .
    John Saunders
    WCF is Web Services. They are not two separate things.
    Use WCF for All New Web Service Development, instead of legacy ASMX or obsolete WSE
    Use File->New Project to create Web Service Projects
    lundi 11 janvier 2010 19:41
    Modérateur
  • When I need Web Services for other java proejcts, what should I do?

    Thanks.

    jeudi 14 janvier 2010 20:44
  • Use WCF. See http://msdn.microsoft.com/wcf/.

    John Saunders
    WCF is Web Services. They are not two separate things.
    Use WCF for All New Web Service Development, instead of legacy ASMX or obsolete WSE
    Use File->New Project to create Web Service Projects
    jeudi 14 janvier 2010 20:46
    Modérateur
  • Nice article John!

    -Mohammed Ghouse Ibne Barq Kadapavi
    vendredi 19 février 2010 21:59
  • Thanks for this post. So straight to the point and simple!! i wud start with WCF.
    lundi 29 mars 2010 18:04
  • Gentlemen,  John is right on with the "WCF" recomendation.  I now use WCF for all of my web services.  I am in the process of converting all of my old "asmx" code.  May I suggest that you Google (OK "Bing") Michele Bustamonte (I may have mispelled here last name.  She has an excellent series of 15 presentations on WCF called "WCF Top to Bottom".  She also has a wonderful reference book of the same name.  Look for a used version on Amazon.  This reallly is great stuff and far more flexible than the previous web services.  Good luck to you all and happy coding...
    samedi 8 mai 2010 13:16
  • Thanks for this post John!
    mercredi 2 juin 2010 20:53
  • Thanks a lot
    vendredi 9 septembre 2011 06:23
  • Nice Post :)
    Pravin Arote, MCTS - Web Technologies. If reply answers your question, Please mark as Answer :)
    mardi 13 septembre 2011 04:55
  • I often find situations where the old ASMX accomplishes exactly what I need it to accomplish with a  minimum of fuss, muss and bother.  I do understand that WCF has it's uses but why fix something that's not broken and why quit using it when it does what it needs to do to meet my needs?
    What monstrosities would walk the earth were men's faces as unfinished as their minds. Victor Hugo
    jeudi 10 novembre 2011 20:46
  • One reason is that the vendor has determined that there will be no improvements to the ASMX technlology, and nothing but the most critical bug fixes.

    Another thing is that, for very little additional effort, you get a much better feature set. Consider the simple matter of logging. With WCF you can simply turn it on with configuration. No need to create a SoapExtension to do the job for you; it's built-in.


    John Saunders
    WCF is Web Services. They are not two separate things.
    Use WCF for All New Web Service Development, instead of legacy ASMX or obsolete WSE
    Use File->New Project to create Web Service Projects
    vendredi 11 novembre 2011 00:36
    Modérateur
  • I have also posted three artciles about WCF that I would like to share with you:

    http://blog.csharplearners.com/category/wcf/

    Regards,

    Amir Ahani (MBA+MCSD.NET)

     

    dimanche 27 novembre 2011 04:43
  • I would like to answer your question in details:

    WCF is a new technology that has combined the best features of XML Web Services and .NET Remoting, along with some improvements.

    The following is some advantages of using WCF to Web Services: 

    1- Web Services supports SOAP. WCF services can use the HTTP, TCP, SMTP, named pipes and MSMQ protocols.

    2- Web Services do not keep session values by default wheras WCF sessions are explicitly defined and closed from client side applications. There are two kinds of sessions in WCF: Reliable session which is responsible for transactions, and the other type keeps session values for objects. Therfore, the session values are managed much better in WCF.

    3- In Web Services, unhandled exceptions are returned to the client as SOAP <Fault> elements in XML format. Web Services can throw an exception, and the message of the exception can be seen once it is deserialized on the client side. WCF allows you to hide the details of an error and to show only the required information. It handles errors in both ways: Exception objects and SOAP Faults.

    4- Web Services are hosted in IIS by pointing the ASMX file to the virtual directory. Unlike Web Services, WCF provides more options for hosting. It combines old hosting options with new ones like hosting on WAS. WCF applications can also be hosted in the following ways:
    a.Self hosting
    b.Windows Service
    c.IIS and WAS

    And much more...

    You can learn more about WCF by visiting the follwoing link:

    http://blog.csharplearners.com/2011/09/11/windows-communication-foundation-links/#more-142

    Regards,

    Amir Ahani (MCSD.NET + MBA)


    dimanche 27 novembre 2011 05:56
  • This isn't really the best place to discuss WCF.
    John Saunders
    WCF is Web Services. They are not two separate things.
    Use WCF for All New Web Service Development, instead of legacy ASMX or obsolete WSE
    Use File->New Project to create Web Service Projects
    dimanche 27 novembre 2011 06:36
    Modérateur
  • Thanks  John
    mardi 7 février 2012 10:17