Log Request to Web Service

G

Guest

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.
 
J

Jacob

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top