The webservice I have does not recognize the request object. The error is: Request is not declared.
I am calling this web service from a client that is using SOAP messaging not HTTP. _____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Brunone Sent: Tuesday, December 20, 2005 8:55 PM To: [email protected] Subject: Re: [AspNetAnyQuestionIsOk] Can a webmethod detect the calling client's IP? Hi Rick, What do you mean by "doesn't work"? More specifically, what is the error message? Part of this will probably depend on what kind of request you send. If it's a standard HTTP request, there should be some way to get what you want. Also, assuming the error from your attempt didn't say that there was no such thing as request.servervariables, have you tried this? Private Sub ListServerVariables() For Each key As String In Request.ServerVariables.Keys Response.Write(String.Format("<b>{0}</b> = {1}<br>", _ key, Request.ServerVariables(key))) Next End Sub FWIW, Peter On 12/20/05, Rick Holcomb <[EMAIL PROTECTED]> wrote: > > Can a webmethod (webservice) detect the calling server/client's IP > address? > > I know that this does not work: Request.ServerVariables.Item > ("REMOTE_ADDR") [Non-text portions of this message have been removed] _____ YAHOO! GROUPS LINKS * Visit your group "AspNetAnyQuestionIsOk <http://groups.yahoo.com/group/AspNetAnyQuestionIsOk> " on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED] e> * Your use of Yahoo! Groups is subject to the Yahoo! <http://docs.yahoo.com/info/terms/> Terms of Service. _____ [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> AIDS in India: A "lurking bomb." Click and help stop AIDS now. http://us.click.yahoo.com/9QUssC/lzNLAA/TtwFAA/saFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
