Retrieving Server variables from a Soap message

F

Frank

Hi,

I have a web service that can only be called using soap messages. I was
wondering how to retrieve the request information (server variable)
from a soap message. I am also using WSE 3.0, and the way I retrieve
the username token is throught
RequestSoapContext.Current.Credentials.UltimateReceiver.GetClientToken<UsernameToken>().Username
....

I would like to know how to retrieve the ip address and dns of the
incoming request. Searched the SoapContext object and could not find
the information I was looking for.

Any help would be greatly appreciated,
 
J

John Saunders

Frank said:
Hi,

I have a web service that can only be called using soap messages. I was
wondering how to retrieve the request information (server variable)
from a soap message. I am also using WSE 3.0, and the way I retrieve
the username token is throught
RequestSoapContext.Current.Credentials.UltimateReceiver.GetClientToken<UsernameToken>().Username
...

I would like to know how to retrieve the ip address and dns of the
incoming request. Searched the SoapContext object and could not find
the information I was looking for.

Use the properties Context.Request object, just as you would for an ASP.NET
web site. This will contain the same information, just as inaccurate as
server variables.

John
 

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,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top