473,326 Members | 2,128 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,326 software developers and data experts.

Need Web Service Caller, machine name of IP Address

I need a way to uniquely identify the machine, IP Address or user that called a web service. We are attempting to loosely integrate
two applications where both apps, running on a single machine, will call a web service to communicate a few simple tokens. The
problem is that there can be multiple users on different PC's using the system and I need to save the source of the token so that it
is picked up by the correct machine.

One of the apps is an Oracle Financials app that has very limited ability for customization and the other will be a VB2005 app that
can have unlimited customization. The oracle app will pass a Document ID via the Web Service. The VB app will call another web
method to see what document it needs to display. I need a way to uniquely identify that both apps are running on the same machine.

I hope this makes sense.

--
Al Reid
Oct 22 '08 #1
3 4276
"Al Reid" <ar*****@reidDASHhome.comwrote in message
news:u6**************@TK2MSFTNGP04.phx.gbl...
I need a way to uniquely identify the machine, IP Address or user that
called a web service. We are attempting to loosely integrate
two applications where both apps, running on a single machine, will call a
web service to communicate a few simple tokens. The
problem is that there can be multiple users on different PC's using the
system and I need to save the source of the token so that it
is picked up by the correct machine.

One of the apps is an Oracle Financials app that has very limited ability
for customization and the other will be a VB2005 app that
can have unlimited customization. The oracle app will pass a Document ID
via the Web Service. The VB app will call another web
method to see what document it needs to display. I need a way to uniquely
identify that both apps are running on the same machine.
Are you using Windows Authentication for the server? If so, then
HttpContext.Current.User will contain accurate information on the
authenticated user.

The machine is a tougher thing. You can get the UserHostName property (see
http://msdn.microsoft.com/en-us/libr...hostname.aspx),
but that relies on DNS, and therefore won't always work. Same with
UserHostAddress, which relies on IP address, and is therefore even worse
(what about multiple network interfaces, proxy servers, or who knows what?)

Now, I've never used them, but maybe client certificates would help. If IE
can be configured to respond with a certificate automatically, then that
takes care of the Oracle Financials application. If you can do it in IE,
then you can certainly do it in you VB application. Give each machine its
own certificate, and you then have uniqueness.

--
John Saunders | MVP - Connected System Developer

Oct 22 '08 #2
"John Saunders" <no@dont.do.that.comwrote in message news:uE**************@TK2MSFTNGP02.phx.gbl...
"Al Reid" <ar*****@reidDASHhome.comwrote in message
news:u6**************@TK2MSFTNGP04.phx.gbl...
I need a way to uniquely identify the machine, IP Address or user that
called a web service. We are attempting to loosely integrate
two applications where both apps, running on a single machine, will call a
web service to communicate a few simple tokens. The
problem is that there can be multiple users on different PC's using the
system and I need to save the source of the token so that it
is picked up by the correct machine.

One of the apps is an Oracle Financials app that has very limited ability
for customization and the other will be a VB2005 app that
can have unlimited customization. The oracle app will pass a Document ID
via the Web Service. The VB app will call another web
method to see what document it needs to display. I need a way to uniquely
identify that both apps are running on the same machine.

Are you using Windows Authentication for the server? If so, then
HttpContext.Current.User will contain accurate information on the
authenticated user.
The users are on another network on the other side of a T1 and we are not part of their domain.
The machine is a tougher thing. You can get the UserHostName property (see
http://msdn.microsoft.com/en-us/libr...hostname.aspx),
but that relies on DNS, and therefore won't always work. Same with
UserHostAddress, which relies on IP address, and is therefore even worse
(what about multiple network interfaces, proxy servers, or who knows what?)
I have found that
Me.Context.Request.UserHostAddress

works within our local network. I sent a link to our partner on the other side of the T1 line to test if the correct IP
address arrives after passing through the routers and firewalls.

Now, I've never used them, but maybe client certificates would help. If IE
can be configured to respond with a certificate automatically, then that
takes care of the Oracle Financials application. If you can do it in IE,
then you can certainly do it in you VB application. Give each machine its
own certificate, and you then have uniqueness.
I've never worked with client certificates either, but the idea seems feasible.

Thanks, John.
--
John Saunders | MVP - Connected System Developer


Oct 23 '08 #3

"Al Reid" <ar*****@reidDASHhome.comwrote in message
news:ug*************@TK2MSFTNGP02.phx.gbl...
"John Saunders" <no@dont.do.that.comwrote in message
news:uE**************@TK2MSFTNGP02.phx.gbl...
>"Al Reid" <ar*****@reidDASHhome.comwrote in message
news:u6**************@TK2MSFTNGP04.phx.gbl...
I need a way to uniquely identify the machine, IP Address or user that
called a web service. We are attempting to loosely integrate
two applications where both apps, running on a single machine, will
call a
web service to communicate a few simple tokens. The
problem is that there can be multiple users on different PC's using the
system and I need to save the source of the token so that it
is picked up by the correct machine.

One of the apps is an Oracle Financials app that has very limited
ability
for customization and the other will be a VB2005 app that
can have unlimited customization. The oracle app will pass a Document
ID
via the Web Service. The VB app will call another web
method to see what document it needs to display. I need a way to
uniquely
identify that both apps are running on the same machine.

Are you using Windows Authentication for the server? If so, then
HttpContext.Current.User will contain accurate information on the
authenticated user.

The users are on another network on the other side of a T1 and we are not
part of their domain.
>The machine is a tougher thing. You can get the UserHostName property
(see
http://msdn.microsoft.com/en-us/libr...hostname.aspx),
but that relies on DNS, and therefore won't always work. Same with
UserHostAddress, which relies on IP address, and is therefore even worse
(what about multiple network interfaces, proxy servers, or who knows
what?)

I have found that
Me.Context.Request.UserHostAddress

works within our local network. I sent a link to our partner on the
other side of the T1 line to test if the correct IP
address arrives after passing through the routers and firewalls.
Of course, it may work today, yet, over the weekend their network
administrators may install some new piece of hardware that changes the
picture. That's why software should not depend on something 'way down at the
Network layer of the protocol stack - it's not meant for you.
--
John Saunders | MVP - Connected System Developer

Oct 23 '08 #4

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

Similar topics

1
by: vijay | last post by:
Hello I am learnign Dot NEt I have implemted 1. remote object 2.Listener 3.Client Listener started and listening to requests Client started and able to nstantiate remote object But when a...
6
by: Chakkaradeep | last post by:
hi all, I have written a C# Service which is a Server accepting Clients,It is working fine when i connect from localhost but when i connect from any other machine to my machine , the service is...
1
by: robinsand | last post by:
I am a new C++ programmer. I am still having trouble with certain data types and constructors, among other things. I'm not sure if I've used "std::string" properly throughout this program. I need...
3
dmjpro
by: dmjpro | last post by:
plz send me a good link which can clearify me how the J2EE framework works i want the details information .... plz help thanx
0
by: =?Utf-8?B?QWRyaWFuIENvbGU=?= | last post by:
I have written a simple WCF service hosted in a Windows console application and a simple WCF client console application that connects successfully to that service and retrieves data. I then ported...
3
by: Knowledge | last post by:
Good day mates, I'm trying to build a database to keep track of information that will be stored when my client kicks off his brand new Taxi Cab business. Initially it will be a one person...
3
by: maciek kanski | last post by:
Hello I have running WCF service (config below) hosting in just console application - because I've used InstanceContextMode.Single and ConcurrencyMode.Multiple and no Throttling I expect that 10...
1
by: =?Utf-8?B?S2F1c2hhbCBNZWh0YQ==?= | last post by:
Hi, Could you let me know what exactly happens when web service provider receives request from the client (from system perspective, like threading and all) ? Also, how does the web service...
0
by: sbsrulz | last post by:
Hi all... I am using the parlay x third party call web service in my c# application. I coded a little and called the main functionality for making a call. Now when i test the service... Its there,...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
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 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.