473,724 Members | 2,222 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1487
"Bob" <Bo*@discussion s.microsoft.com wrote in message
news:45******** *************** ***********@mic rosoft.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*@discussion s.microsoft.com wrote in message
news:45******** *************** ***********@mic rosoft.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*@discussion s.microsoft.com wrote in message
news:D0******** *************** ***********@mic rosoft.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*@discussion s.microsoft.com wrote in message
news:D0******** *************** ***********@mic rosoft.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
1568
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 position. The consumers must consume all the products that are put in the storage place. The user of the program enters how many products it will be produced, and also, how many producers and consumers (each one in a separate thread) there...
12
5199
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
2077
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 code on client. I have attached my code with this Connector.CreateInstance(__uuidof(HttpConnector30)); Connector->Property =
6
17073
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 ssl. I made a web reference to the unsecured and secured version of the web service. When connecting unsecured, it works fine. When I connect secured I get this error: The underlying connection was closed: Could not establish trust...
0
1194
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 order that these developers can take full advantage of the web services, it appears that I need to return output data types in my service description (i.e., before the method is called and the dataset returned), not just input data types. Note...
2
939
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 created at servier where the web service is published. Thanks for replying me .
6
1926
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 for service consumers, at design time. But, I think the cnsumers must completely know all aspects of that service. This sounds not good, and breaks the decoupling rule. So how to understand the role of Service, in a software engineering...
0
922
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 use the objects I've defined in messages to the service and send them as "object" parameters or as embeded items in other objects. I can workaround the problem by declaring all of the objects in a dummy class and then putting a dummy WebMethod...
15
13510
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 http://msdn2.microsoft.com/en-us/library/ms996381.aspx Formerly, with classic Microsoft DNA architecture, the ADO Recordset was a primary transport medium, recommended for transmitting data between application tiers. In fact, there are whole books written on the subject.
0
8868
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
9389
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...
1
9160
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
8063
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6689
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
4504
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
4771
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2613
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2149
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.