metro-jax-ws icon indicating copy to clipboard operation
metro-jax-ws copied to clipboard

-XadditionalHeaders doesn't add headers to async methods

Open Tomas-Kraus opened this issue 3 years ago • 0 comments

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

Tomas-Kraus avatar Jun 02 '22 16:06 Tomas-Kraus