473,396 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to determine web service consumers

I have a 1.1 framework VB.NET web service that is being called my multiple
clients. How can I determine the name of the client app that is calling the
web service at runtime from the web method?

Thanks
May 9 '07 #1
4 1459
"Bob" <Bo*@discussions.microsoft.comwrote in message
news:45**********************************@microsof t.com...
>I have a 1.1 framework VB.NET web service that is being called my multiple
clients. How can I determine the name of the client app that is calling
the
web service at runtime from the web method?
In general, you can't. Have the "client app" send its name to the service.

What do you need this for? Do you need it to be secure?
--
John Saunders [MVP]
May 9 '07 #2
Ok. It's secure - If the web service would tell me, I wouldn't need to go
modify the 6 or so apps that are calling it.

Thank you John.

"John Saunders [MVP]" wrote:
"Bob" <Bo*@discussions.microsoft.comwrote in message
news:45**********************************@microsof t.com...
I have a 1.1 framework VB.NET web service that is being called my multiple
clients. How can I determine the name of the client app that is calling
the
web service at runtime from the web method?

In general, you can't. Have the "client app" send its name to the service.

What do you need this for? Do you need it to be secure?
--
John Saunders [MVP]
May 9 '07 #3
"Bob" <Bo*@discussions.microsoft.comwrote in message
news:D0**********************************@microsof t.com...
Ok. It's secure - If the web service would tell me, I wouldn't need to go
modify the 6 or so apps that are calling it.
I asked if it needs to be secure so I would know how bad it would be if a
calling application pretended to be some other calling application.

At any rate, in general, the recipient of a TCP/IP message doesn't know
_who_ called it. It only knows the sending IP address and port. HTTP doesn't
add any automatic determination of client identity to TCP/IP, so there is
none - at least not automatically. There are several methods you could use
to cause the clients to identify themselves, but none are automatic.

One method would be for the client to pass a certificate to the server. The
server could validate the certificate and then know with some certainty who
was calling.

Another method would be for the client to send a username and password, and
it would be known, with somewhat less certainty, who was calling.
--
John Saunders [MVP]
May 9 '07 #4
I didn't think of the certificate - I'll give that a try. I did get a soap
header to work, but that still makes me update the clients and the web
service. The soap header does make it somewhat easier in that I don't have
to change signatures on the webmethods to pass the userid/pw or the appname
as a function parameter. I haven't tested performance on using the soap
header which is a factor because these services can get hit pretty hard.

Thanks for your answers.

"John Saunders [MVP]" wrote:
"Bob" <Bo*@discussions.microsoft.comwrote in message
news:D0**********************************@microsof t.com...
Ok. It's secure - If the web service would tell me, I wouldn't need to go
modify the 6 or so apps that are calling it.

I asked if it needs to be secure so I would know how bad it would be if a
calling application pretended to be some other calling application.

At any rate, in general, the recipient of a TCP/IP message doesn't know
_who_ called it. It only knows the sending IP address and port. HTTP doesn't
add any automatic determination of client identity to TCP/IP, so there is
none - at least not automatically. There are several methods you could use
to cause the clients to identify themselves, but none are automatic.

One method would be for the client to pass a certificate to the server. The
server could validate the certificate and then know with some certainty who
was calling.

Another method would be for the client to send a username and password, and
it would be known, with somewhat less certainty, who was calling.
--
John Saunders [MVP]
May 10 '07 #5

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

Similar topics

5
by: Leonardo Hyppolito | last post by:
Hello! I am trying to implement a program that uses Threads. I chose the producers and consumers scenario. The producers put a "product" (which is an int number) in a shared storage place of one...
12
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
2
by: Reshma Prabhu | last post by:
Hello, I have created an web service in C# and accessing it thrugh C++ code. But when i make a call through the client, the parameter does not reach the server but it does not show any error...
6
by: Kenneth Moss | last post by:
I have a web service I am calling which I made. I am consuming this service from another domain (and I've tried from a windows app also). I added a certificate to the web service so it will use...
0
by: billmiami2 | last post by:
I'm creating an ASP.NET web service with a number of web methods. The consumers of these web services are developers using Macromedia Flash which comes with its own interface for web services. In...
2
by: jack | last post by:
Hi all iv created a web service which is communicated with vb6 module at the client end im using soap 3.0 for the purpose and also for authentication . i want to know whether can session be...
6
by: dotNeter | last post by:
The services, talked here, are things used in IServiceContainer, IServiceProvider, etc. In my opinion, everything can be a service, and a service is generally used for providing specific features...
0
by: Al Santino | last post by:
Hello, I'm writing a service using VS2005 and C#. I've found that only the objects used as parameters in WebMethods get exported to proxy dlls and the Service Description. My service clients can...
15
by: Joseph Geretz | last post by:
I'm a bit puzzled by the current recommendation not to send Datasets or Datatables between application tiers. http://support.microsoft.com/kb/306134 ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.