You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Ojha, Alok K (GE Healthcare)" <Al...@ge.com> on 2006/02/07 07:56:14 UTC

How to retreive header element value of SOAP message.

Hi,
 
I am very new to web technologies, and using AXIS to develop a
web-service and its client.
Now, my problem is, I need to send header value to web-service and my
web-service need to retreive this information.
I got a solution how to set a header :
 
FooServiceLocator loc = new FooServiceLocator();
FooService binding = loc.getFooService();
org.apache.axis.client.Stub s = (Stub) binding;
s.setHeader("http://my.name.space/headers", "mysecurityheader", "This
guy is OK");
result = binding.myOperation(...);

Is it right way?
 
But i am still struggling to retreive this header value in my
web-service.
 
Best Regards !
~Alok