locked
Why do we need WCF ,Does my situation needs it? RRS feed

  • Question

  • Skills:Beginner
    Language:C#
    Tools:Visual Studio 2010

     

    Hello,

    I was going to make some small asp.net projects such as User Management ,Content Management ,Menu Editor ,Image/Video/Audio Gallery...

    these projects were to be made separately in different projects containers ,so we could integrate into other project or change them as necessary for these all projects to work they all need DataBase access ,i was thinking to make  Classes for Database work but a colleague suggested that we shud make Web Service for Database work (C,R,U,D) ,i haven't made Web Service before,

    Questions:

    1. so does Web Service fit this situation?
    2. Where does Web Service fits / Benefits?
    3. New technology for Web Service is WCF Web Service ?
    4. WCF looks like a huge framework,,! from where shud a beginner like me shud start ?
    5. Is Asp.net Ajax Web Service is something different or what?

     


    Saturday, June 25, 2011 10:48 AM

Answers

  • Hello, I don't think WCF and the whole web service stuff fits your situation. Use web services if you have one or more of the following request:

    • You need to support client applications. Client applications can be desktop applications, phone applications, AJAX applications, and so on.
    • You need to support more than one client. For example, an ASP.NET client, a Java client, and so on. Here client can be more than client applications. Server applications that consume your service are also considered clients.
    • You want to expose your business logic as services. Even if today you want to build a simple ASP.NET web site, but if you're concerened to expand it in the future, it may still be a good idea to investigate SOA now.

     


    Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.
    Windows Azure Technical Forum Support Team Blog
    • Marked as answer by Yi-Lun Luo Friday, July 1, 2011 9:38 AM
    Monday, June 27, 2011 3:12 AM
  • On 6/25/2011 6:48 AM, Abaf wrote:
    > *Skills*:Beginner
    > *Language*:C#
    > *Tools:*Visual Studio 2010
    >
    > Hello,
    >
    > I was going to make some small asp.net projects such as User Management
    > ,Content Management ,Menu Editor ,Image/Video/Audio Gallery...
    >
    > these projects were to be made separately in different projects
    > containers ,so we could integrate into other project or change them as
    > necessary for these all projects to work they all need DataBase access
    > ,i was thinking to make Classes for Database work but a colleague
    > suggested that we shud make Web Service for Database work (C,R,U,D) ,i
    > haven't made Web Service before,
    >
    > *Questions:*
    >
    >    1. so does Web Service fit this situation?
     
    >    2. Where does Web Service fits / Benefits?
     
    Web service is about sharing resources between multiple clients -- code
    reuse.
     
    It's about SOA.
     
     
    >    3. New technology for Web Service is WCF Web Service ?
     
    You have legacy ASP.NET Web service and you have ASP.NET WCF Web
    service. The latter being where MS is headed with technology like
    Sliverligt, ADO.NET Entity Framework and Linq-2-SQL etc.
     
    >    4. WCF looks like a huge framework,,! from where shud a beginner like
    >       me shud start ?
     
    Not really, I suggest you get yourself a good book on WCF.
     
    >    5. Is Asp.net Ajax Web Service is something different or what?
     
    I believe it's just another form of calling a WEB service.
     
     
    Each one of the real world projects in Dofactory like ASP.NET MVC, MVP,
    WPF, Silverlight etc are n-tier solutions using the same WCF WEB
    services with Linq-2-SQL or ADO.NET Entity Framework on the back-end.
     
    If you don't want to use Linq-2-SQL or EF on the back-end, then you
    should be able to use ADO.NET SQL Command objects for the CRUD
    operations. It's about sending serialized XML objects between the WCF
    client and WCF service.
     
    • Marked as answer by Yi-Lun Luo Friday, July 1, 2011 9:38 AM
    Monday, June 27, 2011 4:23 AM

All replies

  • Hello, I don't think WCF and the whole web service stuff fits your situation. Use web services if you have one or more of the following request:

    • You need to support client applications. Client applications can be desktop applications, phone applications, AJAX applications, and so on.
    • You need to support more than one client. For example, an ASP.NET client, a Java client, and so on. Here client can be more than client applications. Server applications that consume your service are also considered clients.
    • You want to expose your business logic as services. Even if today you want to build a simple ASP.NET web site, but if you're concerened to expand it in the future, it may still be a good idea to investigate SOA now.

     


    Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.
    Windows Azure Technical Forum Support Team Blog
    • Marked as answer by Yi-Lun Luo Friday, July 1, 2011 9:38 AM
    Monday, June 27, 2011 3:12 AM
  • On 6/25/2011 6:48 AM, Abaf wrote:
    > *Skills*:Beginner
    > *Language*:C#
    > *Tools:*Visual Studio 2010
    >
    > Hello,
    >
    > I was going to make some small asp.net projects such as User Management
    > ,Content Management ,Menu Editor ,Image/Video/Audio Gallery...
    >
    > these projects were to be made separately in different projects
    > containers ,so we could integrate into other project or change them as
    > necessary for these all projects to work they all need DataBase access
    > ,i was thinking to make Classes for Database work but a colleague
    > suggested that we shud make Web Service for Database work (C,R,U,D) ,i
    > haven't made Web Service before,
    >
    > *Questions:*
    >
    >    1. so does Web Service fit this situation?
     
    >    2. Where does Web Service fits / Benefits?
     
    Web service is about sharing resources between multiple clients -- code
    reuse.
     
    It's about SOA.
     
     
    >    3. New technology for Web Service is WCF Web Service ?
     
    You have legacy ASP.NET Web service and you have ASP.NET WCF Web
    service. The latter being where MS is headed with technology like
    Sliverligt, ADO.NET Entity Framework and Linq-2-SQL etc.
     
    >    4. WCF looks like a huge framework,,! from where shud a beginner like
    >       me shud start ?
     
    Not really, I suggest you get yourself a good book on WCF.
     
    >    5. Is Asp.net Ajax Web Service is something different or what?
     
    I believe it's just another form of calling a WEB service.
     
     
    Each one of the real world projects in Dofactory like ASP.NET MVC, MVP,
    WPF, Silverlight etc are n-tier solutions using the same WCF WEB
    services with Linq-2-SQL or ADO.NET Entity Framework on the back-end.
     
    If you don't want to use Linq-2-SQL or EF on the back-end, then you
    should be able to use ADO.NET SQL Command objects for the CRUD
    operations. It's about sending serialized XML objects between the WCF
    client and WCF service.
     
    • Marked as answer by Yi-Lun Luo Friday, July 1, 2011 9:38 AM
    Monday, June 27, 2011 4:23 AM
  • thanx for reply..

    so i think Classes will fullfill my needs?

    Friday, July 1, 2011 6:26 PM