all groups > dotnet web services > january 2005 >
You're in the

dotnet web services

group:

How do I get the sender's address of a web service or SOAP message?


How do I get the sender's address of a web service or SOAP message? Richard Martino
1/27/2005 2:47:12 PM
dotnet web services:
Dear Experts:

I am using the new Microsoft Web Services Enhancements (WSE) to send
SOAP messages from a client to a web service.

How can I get identifying information of the sender (aka transmitter,
aka originator, aka requestor) of the web request?

By comparison, for a completely different project, I have an internet
web site running PHP in which I can get the IP address of the sender,
the browser type, even the previous URL address (referrer) that the
user was at.

By analogy, I believe that I should be able to get some identifying
information of the sender, at least the IP address. After all, the
"network" needs to know where to send the response back to from my web
service.

I am writing in C# .NET and looked in namespaces such as:

Microsoft.Web.Services2.Addressing, and
Microsoft.Web.Services2.RequestSoapContext

but have not (yet) found out how to identify the sender.

I do not want to require -or trust- the sender to identify itself in
any API. There's bound to be some internet protocol data
communications stuff that identifies, to some degree, who sent me any
message.

Thanks
Re: How do I get the sender's address of a web service or SOAP message? Chris Rolon
1/27/2005 4:38:13 PM
Are you trying to identify the PC or the user? If the PC you can get the IP
address from the HTTP header. If the user, you will want to get the
authentication information--UserNameToken, Kerberos, X509 Cert, and send
that information along with each Web Service call.

Chris Rolon


[quoted text, click to view]

Re: How do I get the sender's address of a web service or SOAP message? Dilip Krishnan
1/27/2005 5:10:35 PM
Hello Richard,
In WSE u should be able to get to the sender info using Context.Addressing.From

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com

[quoted text, click to view]

AddThis Social Bookmark Button