If you want to auth using basic http headers.
If you want to auth using basic http headers: @WebEndpoint(name = "WSHttpBinding_ICustomerService") public ICustomerService getWSHttpBindingICustomerService() { WebServiceFeature wsAddressing = new AddressingFeature(true); ICustomerService service = super. GetPort(new QName("http://xmlns.example.com/services/Customer", "WSHttpBinding_ICustomerService"), ICustomerService. Class, wsAddressing); Map context = ((BindingProvider)service).
GetRequestContext(); Map> headers = new HashMap>(); headers. Put("Username", Collections. SingletonList("yourusername")); headers.
Put("Password", Collections. SingletonList("yourpassword")); return service; } If the service uses NTLM (Windows authentication) (explanation here): @WebEndpoint(name = "WSHttpBinding_ICustomerService") public ICustomerService getWSHttpBindingICustomerService() { WebServiceFeature wsAddressing = new AddressingFeature(true); ICustomerService service = super. GetPort(new QName("http://xmlns.example.com/services/Customer", "WSHttpBinding_ICustomerService"), ICustomerService.
Class, wsAddressing); NtlmAuthenticator auth = new NtlmAuthenticator(username, password); Authenticator. SetDefault(auth); return service; } Haven't used this myself, but seen other use it: @WebEndpoint(name = "WSHttpBinding_ICustomerService") public ICustomerService getWSHttpBindingICustomerService() { WebServiceFeature wsAddressing = new AddressingFeature(true); ICustomerService service = super. GetPort(new QName("http://xmlns.example.com/services/Customer", "WSHttpBinding_ICustomerService"), ICustomerService.
Class, wsAddressing); Map context = ((BindingProvider)service). GetRequestContext(); context. Put(BindingProvider.
USERNAME_PROPERTY, "yourusername"); context. Put(BindingProvider. PASSWORD_PROPERTY, "yourpassword"); return service; }.
Thanks! The variable headers in your first example is set but not used. There's something missing.
– hstoerr Sep 6 at 5:56.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.