On Friday, June 17, 2011 6:15:23 PM 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.
The proxy object is the instance of the service interface that the Service object returns. If using the raw Service object, the return from the getPort(...) methods would be the proxy. Dan > 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 > > Software Engineer, Talend (http://www.talend.com) > > blog: http://www.jroller.com/gmazza -- Daniel Kulp [email protected] http://dankulp.com/blog Talend - http://www.talend.com
