Authenntication using web services in .net

Discussion in 'ASP .Net Web Services' started by CoHe4ko, Sep 19, 2006.

  1. CoHe4ko

    CoHe4ko Guest

    I have written microsoft outlook addin which connects to the server
    using web service and calls utils function - "Save document". This
    function receives some args and loads file from client to server. I
    access web methods directly from client code. there is a problem:
    this function which saves docs call function GetActiveUserId which
    grabs this id from PageContext.Session. But in my case i have no
    session and do not know how to create it. This link doesn't helped -
    http://msdn2.microsoft.com/en-us/library/bfazk0tb.aspx.
    I pass credentials but web service not react and session of course is
    not creating.
    Thanx for reading it.
    Please make some suggestions or give me some code samples of such
    actions.
     
    CoHe4ko, Sep 19, 2006
    #1
    1. Advertising

  2. CoHe4ko

    Glenn Guest

    I'm sure there are other ways of doing it, but this is one method I've used
    in the past.

    http://msdn2.microsoft.com/en-us/library/8728chd5.aspx

    Storing credentials in a custom SOAP header is only a good idea if your
    using httpS.

    HTH

    Glenn

    "CoHe4ko" <> wrote in message
    news:...
    >I have written microsoft outlook addin which connects to the server
    > using web service and calls utils function - "Save document". This
    > function receives some args and loads file from client to server. I
    > access web methods directly from client code. there is a problem:
    > this function which saves docs call function GetActiveUserId which
    > grabs this id from PageContext.Session. But in my case i have no
    > session and do not know how to create it. This link doesn't helped -
    > http://msdn2.microsoft.com/en-us/library/bfazk0tb.aspx.
    > I pass credentials but web service not react and session of course is
    > not creating.
    > Thanx for reading it.
    > Please make some suggestions or give me some code samples of such
    > actions.
    >
     
    Glenn, Sep 20, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nick
    Replies:
    1
    Views:
    6,196
    Alvin Bruney - ASP.NET MVP
    Sep 12, 2005
  2. Anup
    Replies:
    1
    Views:
    2,810
    Mark Rae
    May 9, 2006
  3. imlakhani

    Web Services Restful Services

    imlakhani, Dec 16, 2009, in forum: Java
    Replies:
    1
    Views:
    439
    Jeffrey H. Coffield
    Dec 16, 2009
  4. va
    Replies:
    0
    Views:
    177
  5. John
    Replies:
    4
    Views:
    474
Loading...

Share This Page