WCF Service using Visual Web Developer 2008 Express Edition (Beta 2)

WCF Service using Visual Web Developer 2008 Express Edition (Beta 2)

 

Template is great and fun. Visual Web Developer comes with a new template, WCFService. This template will generate few files for the project. Those files that attract my attention are IService.cs, Service.cs and Service.svc.

 

After creating the WCFService then start a new session of Visual Web Developer and create an ASP.NET Web Site. Add the WCF Service in the web site by clicking the Website on the pull down menu then choose Add Service Reference… 

 

Type in the address for the service in address textbox, http://localhost/webwcf/service.svc is the default, then click Go. Then the developers should be able to instantiate the service like:

 

ServiceReference.ServiceClient svc = new ServiceReference.ServiceClient();

 

It is simple to create and use. Nevertheless, I have a question that still finding the answer. The question is, what are the advantages of using WCFService over Web Service? Comment is very much welcome.

 

Download Visual Web Developer 2008 Express Edition (Beta 2) here: http://msdn2.microsoft.com/en-us/express/default.aspx

About chanmingman

Since March 2011 Microsoft Live Spaces migrated to Wordpress (http://www.pcworld.com/article/206455/Microsoft_Live_Spaces_Moves_to_WordPress_An_FAQ.html) till now, I have is over 1 million viewers. This blog is about more than 50% telling you how to resolve error messages, especial for Microsoft products. The blog also has a lot of guidance teaching you how to get stated certain Microsoft technologies. The blog also uses as a help to keep my memory. The blog is never meant to give people consulting services or silver bullet solutions. It is a contribution to the community. Thanks for your support over the years. Ming Man is Microsoft MVP since year 2006. He is a software development manager for a multinational company. With 25 years of experience in the IT field, he has developed system using Clipper, COBOL, VB5, VB6, VB.NET, Java and C #. He has been using Visual Studio (.NET) since the Beta back in year 2000. He and the team have developed many projects using .NET platform such as SCM, and HR based applications. He is familiar with the N-Tier design of business application and is also an expert with database experience in MS SQL, Oracle and AS 400.
This entry was posted in .Net. Bookmark the permalink.

1 Response to WCF Service using Visual Web Developer 2008 Express Edition (Beta 2)

  1. Hammad says:

     
    Hi,
     
    Following are my two cents on your question:
     
    Although this discussion can be extensive and cover many aspects but i will focus on three major dimensions:
     
    1- Design:
    WCF is a way much better designed model for Service Oriented development. The reason why I say that is because with WCF you have the means for representing Service Contracts and Data Contracts that could form the basis for "Contract First Development". WCF offers better separation of concerns allowing implicit support for separating implementation details from exposed service. Support for configuration at design-time and run-time through code and configuration are all but examples of a better design product.
     
    2- Performance:
    WCF offers way much better performance as compared to asmx web services. You can check out http://msdn2.microsoft.com/en-us/library/bb310550.aspx.
     
    3: Feature-set:
    Last but not the least, WCF offers much more than what our good old asmx web service used to offer. I will list down some of the features as bullet points:
    – Support for Queue and Reliable Sessions
    – Transactional Support
    – P2P Development
    – Interoperability with COM+
    – (Large data) Streaming Data Transfer
    – Syndication Support
    – REST Based Programming
     
    In short WCF is an evolution of Distributed (service oriented) computing at Microsoft. While ASMX was a "quick fix" solution for developing web services, WCF is a complete (and extensible) offering that encompasses all the needs for developing enterprise level distributed and service oriented applications/services. WCF offers a consistent programming model across all the verticals in MS technology stack ( untill WCF was released, MSMQ had its own programming model, ASMX was different, Remoting had its own constructs, etc. etc.)
     
    I hope I was able to answer your question.
     
    Happy programming with WCF (Dub-See-Eff) 🙂
     
    cheers,
    Hammad
    http://dotnetwizards.blogspot.com

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.