Posting Soap Headers By Using Jax-WS

Metro’s wsimport utility has a new option (XadditionalHeaders) which maps additional soap headers as method parameters. So we don’t have to deal with WSBindingProvider class anymore. So this should be the easiest and probably the most reliable solution. For ant task, use xadditionalHeaders=”true” also for commandline use -XadditionalHeaders