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. Web Development
  3. ASP.NET
  4. user that executes web service

user that executes web service

Scheduled Pinned Locked Moved ASP.NET
questionasp-net
2 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.
  • L Offline
    L Offline
    LittleWhiteDog
    wrote on last edited by
    #1

    Hi, I hope to be in the right forum with this question: I would like to create a webservice method, that returns the username of the user that executes its assembly. I hope to be clear here. Typically it would be the ASPNET user that is returned, but i want to get the exact user. Is this possible? And if so ... what do i have to do ?

    don't waste your time, or time will waste you

    V 1 Reply Last reply
    0
    • L LittleWhiteDog

      Hi, I hope to be in the right forum with this question: I would like to create a webservice method, that returns the username of the user that executes its assembly. I hope to be clear here. Typically it would be the ASPNET user that is returned, but i want to get the exact user. Is this possible? And if so ... what do i have to do ?

      don't waste your time, or time will waste you

      V Offline
      V Offline
      Venk259
      wrote on last edited by
      #2

      Hi, Since the calling of the function in web reference is done by the asp.net user, you can't get the exact user. But you can get it in the webform using the code Request.LogonUserIdentity.Name give the exact user who is accessing the page. Request.LogonUserIdentity give the system.security.principal.windowsidentity class object.

      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