Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Using Web service as business logic layer

Using Web service as business logic layer

Scheduled Pinned Locked Moved C#
databasedesignquestionbusinesscode-review
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shambho
    wrote on last edited by
    #1

    Is it a proper to design the business logic layer & Data access layer as a web service in a n-tier application. What are the pros and cons of using this. when should i use it and when i should not. My UI may be a windows or web application does webservice affect it by any way. Another Query: What the typical functions required in dblibrary.? How can i optimize database access in a dblibrary? What are the things to be kept in mind when designing a dblibrary? How can i make my dblibrary also database independent i.e. tommorow i should be able to change the database without changing code just change the configuration settings in some resource file)? I am sorry if its unclear . Thanks to all who has answered my previous queries. Thanks in advance for any reply? I would like hear the answer of these queries with reason ie. why something is better or not? with regards anand

    S 1 Reply Last reply
    0
    • S shambho

      Is it a proper to design the business logic layer & Data access layer as a web service in a n-tier application. What are the pros and cons of using this. when should i use it and when i should not. My UI may be a windows or web application does webservice affect it by any way. Another Query: What the typical functions required in dblibrary.? How can i optimize database access in a dblibrary? What are the things to be kept in mind when designing a dblibrary? How can i make my dblibrary also database independent i.e. tommorow i should be able to change the database without changing code just change the configuration settings in some resource file)? I am sorry if its unclear . Thanks to all who has answered my previous queries. Thanks in advance for any reply? I would like hear the answer of these queries with reason ie. why something is better or not? with regards anand

      S Offline
      S Offline
      Salil Khedkar
      wrote on last edited by
      #2

      It is typically dependent on the client’s wish. Some clients do not prefer to business logic sitting on the IIS machine and for Web Services you require the IIS machine. In such situation, the solution is to use .NET remoting to access services secured inside the firewall while your IIS Web Service sits outside the firewall in the DMZ and just serves requests. :wtf: The question you have raised is really important from the point of view of the *trust* users are going to put over IIS/.NET basde Web Services, while the recent IIS exploit memories are still fresh. I expect some interesting advice from the Microsoft guys and the pattern gurus. Your database questions are irrelevant for this forum, please use the ADO forum. Lets me tackle the only forum relevant question: Database independent programming: OBBC technology has been around for years to solve this problem. .NET has OLEDB and ODBC Adaptors, which you can read on and use to achieve the same purpose. The documentation clearly stating which one among these two is suited for which purpose, is a bit rare to find, but some experts will soon throw light on this. Lets wait a while… ;)

      S 1 Reply Last reply
      0
      • S Salil Khedkar

        It is typically dependent on the client’s wish. Some clients do not prefer to business logic sitting on the IIS machine and for Web Services you require the IIS machine. In such situation, the solution is to use .NET remoting to access services secured inside the firewall while your IIS Web Service sits outside the firewall in the DMZ and just serves requests. :wtf: The question you have raised is really important from the point of view of the *trust* users are going to put over IIS/.NET basde Web Services, while the recent IIS exploit memories are still fresh. I expect some interesting advice from the Microsoft guys and the pattern gurus. Your database questions are irrelevant for this forum, please use the ADO forum. Lets me tackle the only forum relevant question: Database independent programming: OBBC technology has been around for years to solve this problem. .NET has OLEDB and ODBC Adaptors, which you can read on and use to achieve the same purpose. The documentation clearly stating which one among these two is suited for which purpose, is a bit rare to find, but some experts will soon throw light on this. Lets wait a while… ;)

        S Offline
        S Offline
        shambho
        wrote on last edited by
        #3

        thanks, how to use .net remoting to access services in secure mode. also let me know other ways of building web services. Thanks again for the reply. anand

        H 1 Reply Last reply
        0
        • S shambho

          thanks, how to use .net remoting to access services in secure mode. also let me know other ways of building web services. Thanks again for the reply. anand

          H Offline
          H Offline
          Heath Stewart
          wrote on last edited by
          #4

          If you are using Web Services, or using .NET Remoting over an HTTP channel, then simply buy yourself an SSL certificate from VeriSign[^], Thawte[^], or some other company and install it on IIS. These companies will have instructions, and please don't ask here because it's not a C#-related question. If you want more granularity with what in your body gets encrypted, read about the Microsoft Web Service Enhancements[^], and implementation of industry standard specifications to encrypt, sign, route, and do more with SOAP (what Web Services use, and what .NET Remoting can use for a formatting channel). If you want more information about how to build Web Services, I recommend you read some of the many articles on this site, or visit http://msdn.microsoft.com/webservices[^]. There is a lot of information available so this is not really a suitable subject for the forum, which is geared more toward specific questions. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups