cancel
Showing results for 
Search instead for 
Did you mean: 

Web Service and IP

david_fryda2
Participant
0 Kudos

Hi everyone,

I wrote a simple java class with a method HelloWorld.

Is there a way to have the IP of the calling machine (of the machine that calls the web service) ?

Thanks.

Regards.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi! David,

your question is not clear(at lease to me).

stand alone Java application and WebService are two different technology.

ya, i agree that web-service can be implemented in Java as well.

So, please clarify what exactly you want?

Do you want an API which gives the IP address of client machine?

regards,

Mithileshwar

david_fryda2
Participant
0 Kudos

Hi,

I agree that the question is not so clear.

My boss thinks that I can retreive from the web service the IP of the call (the one that consumes the web service).

But that web service is a standalone class.

Example :

<code>

public String HelloWorld()

{

System.out.println("HelloWorld");

}

</code>

Of course, I cannot get the IP of the machine that consumes that web service.

Is there a way, other than standalone class, to get the IP (or other details) of the consumer ?

Thanks.

Former Member
0 Kudos

Hi! David,

i think your problem is related to SessionTracking.There are four way to track a client request.

i request you to go through any good book or Google "Session tracking".

regards,

Mithileshwar

david_fryda2
Participant
0 Kudos

Thanks Mithileshwar Sahu .

Regards.

Answers (0)