metro-jax-ws
                                
                                 metro-jax-ws copied to clipboard
                                
                                    metro-jax-ws copied to clipboard
                            
                            
                            
                        -XadditionalHeaders doesn't add headers to async methods
When -XadditionalHeaders is combined with jaxws:enableAsyncMapping, headers are added to synchronous methods, but not to asynchronous methods:
public String messageSend( @WebParam(name = "regionID", targetNamespace = "http://cpdirect.centerpost.com/") String regionID, @WebParam(name = "messageDoc", targetNamespace = "http://cpdirect.centerpost.com/") MessageDoc40 messageDoc, @WebParam(name = "authentication", targetNamespace = "http://cpdirect.centerpost.com/", header = true, partName = "authentication") Authentication40 authentication);
public Future<?> messageSendAsync( @WebParam(name = "regionID", targetNamespace = "http://cpdirect.centerpost.com/") String regionID, @WebParam(name = "messageDoc", targetNamespace = "http://cpdirect.centerpost.com/") MessageDoc40 messageDoc, @WebParam(name = "asyncHandler", targetNamespace = "") AsyncHandler<MessageSendResponse> asyncHandler);
Authentication40 should be added to both.
Environment
Operating System: All Platform: All
Affected Versions
[current]
Source: https://github.com/javaee/metro-jax-ws/issues/512 Author: glassfishrobot