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 3 4454
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
"Richard Martino" <No*******@yahoo.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com... 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
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 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
Chris (or others):
Thanks for the hint:
"If the PC you* can get the IP address from the HTTP header."
but sometimes (like now) I need very specific directions.
How do I get the HTTP header?
Source code that I can cut and paste would be real nice :-)
Thanking you in advance. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Michael Riggio |
last post by:
Is there a way to have a windows service instantiate a class that is a web
service, which will then be accessible to clients via HTTP?
Thanks,
-Mike
|
by: bryce_li |
last post by:
Hello
I am looking for the best architectural pattern in using the
SOAP:address location: Hardcode the real endpoint or use localhost (in
our company on an Intranet site)
>From what I can see...
|
by: David Lozzi |
last post by:
Howdy,
I wrote a web service in .Net for my customer. My customer has another
vendor who now has to consume it but they are not using Visual Studio. Most
of their pages are jsp, and they said...
|
by: Enda Manni |
last post by:
Hi,
I have a gSoap Web Service written using C++, it uses SOAP username and
password authentication.
I also have a C# form client consuming the web service, all this was working
fine until...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |