473,807 Members | 2,766 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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.S ervices2.Addres sing, and
Microsoft.Web.S ervices2.Reques tSoapContext

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

Nov 23 '05 #1
3 4490
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*******@yaho o.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.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.S ervices2.Addres sing, and
Microsoft.Web.S ervices2.Reques tSoapContext

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

Nov 23 '05 #2
Hello Richard,
In WSE u should be able to get to the sender info using Context.Address ing.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.S ervices2.Addres sing, and
Microsoft.Web.S ervices2.Reques tSoapContext
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

Nov 23 '05 #3
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.

Nov 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
2269
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
0
3470
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 there are two patterns: 1. Code the endpoint to the WSDL Sample:
5
10403
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 they need to consume this web service using HTTP. The developer's IDE is Notepad. Yeah, weird I know. How is this done? I guess if I can get it to run ASP, IDE independant, that should make them happy. Any references you can point me to?
3
16329
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 I added the authentication on the server, now I can not get the client to authenticate. Can someone tell me how to add authentication info to the SOAP message posted from the C# SOAP client.
0
9719
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10624
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10371
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10111
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5684
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.