you need to add a private member in you impl as follows

   @Resource
   private WebServiceContext context;

For more information please refer to system test https://svn.eu.apache.org/repos/asf/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/outofband/header

-- Ulhas Bhole

ysahuly wrote:
hi,
     thanks for ur reply...I understand the below part but where i need to
inject the below code...i.e from where i will need to get the context...i am
new to CXF


dkulp wrote:
On Friday 21 November 2008 7:34:56 am ysahuly wrote:
Hi,

In CXF, I need to add the SOAP header in the WebserviceContext on server
as
per the option 4 provided in the Apache CXF
FAQ(http://cxf.apache.org/faq.html).If anybody have idea about this Plz
lemme know...
It's really exactly like the client side....

List<Header> list = context.get(Header.HEADER_LIST);
if (list == null) {
   list = new ArrayList<Header>();
   context.put(Header.HEADER_LIST, list);
}
Header header = new Header(qname, dom);
list.add(header);


--
Daniel Kulp
[EMAIL PROTECTED]
http://dankulp.com/blog




Reply via email to