Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jaxws-rt]: 4.0.1 the content of bindingProviger.requestContext is not copy to packet.invocationProperties #658

Closed
vitalijr2 opened this issue Sep 22, 2023 · 1 comment

Comments

@vitalijr2
Copy link

I put values to the request context but when HttpTransportPipe process the packet - the packet.invocationProperties is empty.

I use jaxws-rt 4.0.1.

The sample:
--- I create a client ---

    var helloEndpoint = service.getHelloEndpointPort();
    var bindingProvider = ((BindingProvider) helloEndpoint);
    var requestContext = bindingProvider.getRequestContext();

    requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "https://qwerty/test");
    requestContext.put(BindingProvider.USERNAME_PROPERTY, "contextUsername");
    requestContext.put(BindingProvider.PASSWORD_PROPERTY, "contextPassword");

    var headers = new HashMap<String, List<String>>();
    headers.put("Username", Collections.singletonList("headerUsername"));
    headers.put("Password", Collections.singletonList("headerPassword"));
    requestContext.put(MessageContext.HTTP_REQUEST_HEADERS, headers);

    return service.getHelloEndpointPort();

Then I check the invocationProperties on

Map<String, List<String>> userHeaders = (Map<String, List<String>>) request.invocationProperties.get(MessageContext.HTTP_REQUEST_HEADERS);
and it is empty.

@vitalijr2 vitalijr2 changed the title [jaxws-rt]: 4.0.1. the content of bindingProviger.requestContext does not copy to packet.invocationProperties [jaxws-rt]: 4.0.1 the content of bindingProviger.requestContext does not copy to packet.invocationProperties Sep 22, 2023
@vitalijr2 vitalijr2 changed the title [jaxws-rt]: 4.0.1 the content of bindingProviger.requestContext does not copy to packet.invocationProperties [jaxws-rt]: 4.0.1 the content of bindingProviger.requestContext is not copy to packet.invocationProperties Sep 22, 2023
@vitalijr2
Copy link
Author

Request context
request context

InvocationProperties
invocationProperties

@vitalijr2 vitalijr2 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant