Hi Marco, sure, using the BindingProvider you are on the right track: import org.apache.cxf.headers.Header; import org.apache.cxf.jaxb.JAXBDataBinding;
... final Header header = new Header(headerQName, headerObject new JAXBDataBinding(headerObject.class)); final List<Header> headers = new ArrayList<Header>(); headers.add(header); ((BindingProvider)ws).getRequestContext().put(Header.HEADER_LIST, headers); Regards, Michael 2012/8/22 Marco Pas <[email protected]> > Hi there i am trying to add some logging to the inbound / outbound > traffic of a wsdl2java generated client. > I have the client generated and using it as follows: > > pseudo code: > > MyService ws = new MyService().getMyServiceSoap12(); > > ((BindingProvider)ws).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, > webServiceAddress); // for dynamic endpoints... > > Is there any way i can add some interceptors? I am using it in a > Spring application by the way! > > Thanks in advance. > > Greetings Marco >
