Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get HttpHeaderData - in SOAP Request

 
NarendraBabu Bandaru
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
NarendraBabu Bandaru
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for throwing some light. I am sure that it will give correct result what am expecting.

Thanks Again,
Narendra
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic