For Programmers: Free Programming Magazines  


Home > Archive > Microsoft Webservices > May 2006 > Log Request to Web Service









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Log Request to Web Service

2006-05-15, 7:12 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.


Jacob

2006-05-15, 7:12 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 in message
news:erEvdWEeGHA.5016@TK2MSFTNGP04.phx.gbl...
> 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.
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com