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. Membership/role providers vs. transaction!

Membership/role providers vs. transaction!

Scheduled Pinned Locked Moved C#
databasequestionvisual-studiobusinessjson
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.
  • M Offline
    M Offline
    Mehdi Mousavi
    wrote on last edited by
    #1

    Hi folks, I got a general question that I cannot find the answer for. Consider a 3-tier application architecture with a Web Service handling the business layer (BL) logic. The BL provides the client the facility to create/update/delete or query any given Employee account within the system. Each employee has got a username/password pair that's supposed to be stored in the *aspnetdb* database using the Membership API. The question is that how a client is supposed to create an employee account with one web method, and create a new user name with another web method, *transactionally* under a *stateless* web service??? [WebMethod] void CreateEmployee(Employee employee) { } [WebMethod] void CreateUser(string username, string password) {} How am I supposed to keep the integrity of the system? Maybe, you suggest the following WebMethod instead of those two: void CreateEmployee(Employee employee, string username, string password) {} However, this introduces a new bunch of problems under the UpdateEmployee/DeleteEmployee and the like methods. What should be done to handle the issue rationally? Thank you for your time, Mehdi

    E 2 Replies Last reply
    0
    • M Mehdi Mousavi

      Hi folks, I got a general question that I cannot find the answer for. Consider a 3-tier application architecture with a Web Service handling the business layer (BL) logic. The BL provides the client the facility to create/update/delete or query any given Employee account within the system. Each employee has got a username/password pair that's supposed to be stored in the *aspnetdb* database using the Membership API. The question is that how a client is supposed to create an employee account with one web method, and create a new user name with another web method, *transactionally* under a *stateless* web service??? [WebMethod] void CreateEmployee(Employee employee) { } [WebMethod] void CreateUser(string username, string password) {} How am I supposed to keep the integrity of the system? Maybe, you suggest the following WebMethod instead of those two: void CreateEmployee(Employee employee, string username, string password) {} However, this introduces a new bunch of problems under the UpdateEmployee/DeleteEmployee and the like methods. What should be done to handle the issue rationally? Thank you for your time, Mehdi

      E Offline
      E Offline
      ednrgc
      wrote on last edited by
      #2

      This may help you understand web service security: http://www.15seconds.com/issue/020312.htm

      M 1 Reply Last reply
      0
      • M Mehdi Mousavi

        Hi folks, I got a general question that I cannot find the answer for. Consider a 3-tier application architecture with a Web Service handling the business layer (BL) logic. The BL provides the client the facility to create/update/delete or query any given Employee account within the system. Each employee has got a username/password pair that's supposed to be stored in the *aspnetdb* database using the Membership API. The question is that how a client is supposed to create an employee account with one web method, and create a new user name with another web method, *transactionally* under a *stateless* web service??? [WebMethod] void CreateEmployee(Employee employee) { } [WebMethod] void CreateUser(string username, string password) {} How am I supposed to keep the integrity of the system? Maybe, you suggest the following WebMethod instead of those two: void CreateEmployee(Employee employee, string username, string password) {} However, this introduces a new bunch of problems under the UpdateEmployee/DeleteEmployee and the like methods. What should be done to handle the issue rationally? Thank you for your time, Mehdi

        E Offline
        E Offline
        ednrgc
        wrote on last edited by
        #3

        here's another link: http://samples.gotdotnet.com/quickstart/aspplus/doc/secureservices.aspx

        1 Reply Last reply
        0
        • E ednrgc

          This may help you understand web service security: http://www.15seconds.com/issue/020312.htm

          M Offline
          M Offline
          Mehdi Mousavi
          wrote on last edited by
          #4

          Ooops! You simply didn't get my point. :( I didn't ask you how to develop a "secure web service"! I was just talking about ASP.NET Membership/Role providers and how to get the job done under a given transaction. It has got nothing to do with SOAP headers, nor the IIS A&A mechanisms. Anyway, thanks.

          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