This content has been marked as final. Show 3 replies
Well I don't know. But when I don't know, I Google. In this case simply "jax-ws client add header". And guess what: there were results. This one looks promising:
Assuming its some JAX-WS implementation you're using of course. In future questions I would be more forthcoming with which exact API and implementation of that API you're using. This is Java, there tend to be at least two but often half a dozen or more alternatives to solving the same problem.
Many thanks to reply.
It had been done by handler.Handler is deploy at server side,In contrast we need to set handler from client side. with the help of google i found piece of code, follow as below.But it is not working for me.
Need help am i missing something in this code Or what do i use different approach ?
Map<String, Object> req_ctx = ((BindingProvider)c).getRequestContext();
Map<String, List<String>> headers = new HashMap<String, List<String>>();