Hmmm...I may be wrong but I think your below code is attempting to add
HTTP headers, not SOAP headers.
Glen
On 06/17/2011 08:45 AM, Emil Dombagolla wrote:
Thanks you so much helping me. i ll try to do it now.
But if there is any quick way please someone tell me.
What is the variable proxy in following code . i don't use any proxy to
connect to server. i just create Service object and use its methods. so how
can i have proxy variable to set this.
((BindingProvider)proxy).getRequestContext().put(Header.HEADER_LIST,
headers);
Thanks you so much.
Emil
On Fri, Jun 17, 2011 at 6:03 PM, Glen Mazza<[email protected]> wrote:
I do that using JAX-WS Handlers here:
http://www.jroller.com/gmazza/entry/jaxws_handler_tutorial, or, if you
wish, using CXF interceptors instead:
http://www.jroller.com/gmazza/entry/jaxwshandlers_to_cxfinterceptors.
HTH,
Glen
On 06/17/2011 08:13 AM, Emil Dombagolla wrote:
Dear all,
I need to add soap headers for my requests. My service WSDL doesn't define
any headers . so if i used wsdl2java -exsh true this generates nothing.
so tried to use following code as FAQ says.
--
Glen Mazza
Application Integration Division
Talend (http://www.talend.com/ai)
blog: http://www.jroller.com/gmazza