cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kenkyee <>
Subject how do you add parameters to soap:header in CXF generated WS client?
Date Sun, 13 Dec 2009 03:56:23 GMT

I'm trying to make the soap header of WS client requests look like this
(adding the aws parameters to the soap:header):

In the FAQ, there's a vague mention of mucking w/ the headers:
List<Header> headers = new ArrayList<Header>();
Header dummyHeader = new Header(new QName("uri:org.apache.cxf", "dummy"),
                                new JAXBDataBinding(String.class));
context.getMessageContext().put(Header.HEADER_LIST, headers);

But it doesn't describe how to get a context.  Is this even the right API to
add parameters to the soap:header in the outgoing request?

Thanks in advance.  I haven't been able to find anything related to this in
the archives of this list...

View this message in context:
Sent from the cxf-user mailing list archive at

View raw message