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. WebService Architecture

WebService Architecture

Scheduled Pinned Locked Moved C#
ooparchitecture
4 Posts 2 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
    Steve Severance
    wrote on last edited by
    #1

    I am getting ready to build a webservice that will comprise several components. Am I better off building several components with one webservice as an abstraction layer or several smaller webservices. Steve Not all who wander are lost...

    S 1 Reply Last reply
    0
    • S Steve Severance

      I am getting ready to build a webservice that will comprise several components. Am I better off building several components with one webservice as an abstraction layer or several smaller webservices. Steve Not all who wander are lost...

      S Offline
      S Offline
      SimonS
      wrote on last edited by
      #2

      Hi Steve This sounds like an interesting problem. Please can you provide some more info so I can give you a better answer. Cheers, Simon "Every good work of software starts by scratching a developer's personal itch.", Eric S. Raymond

      S 1 Reply Last reply
      0
      • S SimonS

        Hi Steve This sounds like an interesting problem. Please can you provide some more info so I can give you a better answer. Cheers, Simon "Every good work of software starts by scratching a developer's personal itch.", Eric S. Raymond

        S Offline
        S Offline
        Steve Severance
        wrote on last edited by
        #3

        I am beginning a research project in which I will begin to develop an application to manage a small to mid-size hospital. I am wondering what the best way to architect this is. I was thinking of building a webservice for consumption by and ASP.NET site as well as a piece of software on handheld devieces. There is so much functionality that will be exposed that roling it into a single webservice will produce an enourmous service. I was thinking after I posted that COM+ may be the way to go. I have no experiance developing enterprise applications so any advice or good resources would be appreciated. Thanks. Steve Not all who wander are lost...

        S 1 Reply Last reply
        0
        • S Steve Severance

          I am beginning a research project in which I will begin to develop an application to manage a small to mid-size hospital. I am wondering what the best way to architect this is. I was thinking of building a webservice for consumption by and ASP.NET site as well as a piece of software on handheld devieces. There is so much functionality that will be exposed that roling it into a single webservice will produce an enourmous service. I was thinking after I posted that COM+ may be the way to go. I have no experiance developing enterprise applications so any advice or good resources would be appreciated. Thanks. Steve Not all who wander are lost...

          S Offline
          S Offline
          SimonS
          wrote on last edited by
          #4

          OK. Here's my take on the web services architecture thing. All a web service (ws) really is, is a class that happens to be exposed to the web. Ideally, in my opinion, the ws should just wrap an existing class. So, ws X would wrap (and expose) class X. My reasoning behind this is because of 2 primary factors: performance and reusability. Performance - if ws X is the sole provider of functionality X then another class on the same machine will have to take the performance hit of calling a ws (marshalling, HTTP, address resolution, etc...). Reusability - follows on from previous point. Also, I view a ws to be a requirement of a class and not necessary a point of functionality itself. The thing to remember is that a ws is just a class. So, if your class/ws is too large, then chances are that it hasn't been factorised properly. One school of thought (Bruce Eckell, I think) is to design your class on a small flash card. The premise being that if you require more physical space on the card to jot down member and attribute names then you should use another card/class. I think this is a pretty nice idea! Thanks, Bruce. An idea would be to remove the concept of web services from your initial design and rather give a special attribute to the classes that need to be exposed to the web/intranet. This can later be enhanced into a decorator class of soughts. Your idea of having ASP.NET as your front end that consumes web services is a valid design. What would the reason be to expose web services though? If your reason is to expose a subset of functionality for other apps to use, then cool. The architecture I'm working on at the moment uses ASP.NET pages (very light) that consume ws as per your idea. There was a very specific reason for it though. The entire backend (ws included) will be migrated to a J2EE & ws system in a few years time and we wanted to prevent a[nother] rewrite for that. As far as COM+ is concerned: COM+/MTS no longer gives you the reduction in object creation time that it would do for pure COM components, so that's minus 1 point. Hopefully, this will change with COM+ 2 (?) in the .NET servers. The reasons that COM+ might be useful in a .NET world is for things like transactions. Will this be a requirement for your application? If you are keen to continue this offline, then either MSN Messenger/mail me at simon_stewart@hotmail.com. Cheers, Simon "Sign up for a chance to be among the first to experienc

          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