HighTechTalks DotNet Forums  

Log Request to Web Service

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Log Request to Web Service in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
 
Posts: n/a

Default Log Request to Web Service - 05-15-2006 , 12:33 PM






Hello,

In a Visual Studio 2005 VB.NET Web Service where would I write the code to
get hings like the clients IP address, etc upon connection to a web service?
Basically I want to log attempt/visits to a web service. There doesn't seem
to be anything like an OnConnection method. Also, what methods are
available to get the IP Address, etc from the connected user? Thanks a lot.

P.S. I'm also sing WSE 3. Thanks a lot.



Reply With Quote
  #2  
Old   
Jacob
 
Posts: n/a

Default Re: Log Request to Web Service - 05-15-2006 , 02:02 PM






Try Context.Request.UserHostAddress to get their IP

But IIS will already do logging for you, so I'm not sure why you want to do
this manually.



<msnews.microsoft.com> wrote

Quote:
Hello,

In a Visual Studio 2005 VB.NET Web Service where would I write the code to
get hings like the clients IP address, etc upon connection to a web
service? Basically I want to log attempt/visits to a web service. There
doesn't seem to be anything like an OnConnection method. Also, what
methods are available to get the IP Address, etc from the connected user?
Thanks a lot.

P.S. I'm also sing WSE 3. Thanks a lot.





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.