This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes How to get HttpHeaderData -  in SOAP Request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to get HttpHeaderData -  in SOAP Request" Watch "How to get HttpHeaderData -  in SOAP Request" New topic
Author

How to get HttpHeaderData - in SOAP Request

NarendraBabu Bandaru
Greenhorn

Joined: May 17, 2008
Posts: 20
Hi,

I would like to know is there any possibility that i can get HTTP Header details in webservice request.

I want to know exactly from which domain the web service has been called? Is there any way that i can capture this from the SOAP request for the webservice.

Thanks in Advance,
Narendra
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41587
    
  54
Welcome to JavaRanch.

That depends on the SOAP toolkit you're using. E.g., using Axis 1 you could do something like this to get at the HttpServletRequest object:

With Axis 2 it's presumably something similar.


Ping & DNS - my free Android networking tools app
NarendraBabu Bandaru
Greenhorn

Joined: May 17, 2008
Posts: 20
Thanks a lot for throwing some light. I am sure that it will give correct result what am expecting.

Thanks Again,
Narendra
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get HttpHeaderData - in SOAP Request