File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Identifying client details Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Identifying client details" Watch "Identifying client details" New topic
Author

Identifying client details

sandeep Thandu
Greenhorn

Joined: Feb 16, 2012
Posts: 7
How to identify the client application type invoking a web service.
can I able to determine the client as a web service/stand alone client at the service side using client request.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42263
    
  64
Define "client application type"; it's not a generally understood term. Do you mean some HTTP header like User-Agent? Note that those are subject to client-side tampering.


Ping & DNS - my free Android networking tools app
sandeep Thandu
Greenhorn

Joined: Feb 16, 2012
Posts: 7
Ulf Dittmer wrote:Define "client application type"; it's not a generally understood term. Do you mean some HTTP header like User-Agent? Note that those are subject to client-side tampering.


I want to find if client itself is a web service or not. I referred Http headers and Tcp details but could not able to tell what exactly is client type.
I only have client ip address but In my project I should also able to say that client who invoked myservice is a web service or not.

Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42263
    
  64
The HTTP looks the same, no matter what kind of code performs the request. If you don't have control over the client (and thus can set an HTTP header, or pass a parameter), then there's no way to do this.
sandeep Thandu
Greenhorn

Joined: Feb 16, 2012
Posts: 7
Ulf Dittmer wrote:The HTTP looks the same, no matter what kind of code performs the request. If you don't have control over the client (and thus can set an HTTP header, or pass a parameter), then there's no way to do this.


Thanks for help.
I am assuming that i will have control over client(Inra Organization)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Identifying client details