Thank you for your answer.
Authorization, I am doing this way:
...
factory.setServiceClass(Service.class);
factory.setAddress(serviceAddress);
Service service = this.factory.create(Service.class);
Client client = ClientProxy.getClient(device);
Endpoint endpoint = client.getEndpoint();
Map<String, Object> properties = new HashMap<String,
Object>();
properties.put(WSHandlerConstants.ACTION,
WSHandlerConstants.USERNAME_TOKEN);
properties.put(WSHandlerConstants.USER, x.getUsername());
properties.put(WSHandlerConstants.PASSWORD_TYPE,
x.getPasswordType());
properties.put(WSHandlerConstants.PW_CALLBACK_CLASS,
AuthService.class.getName());
WSS4JOutInterceptor wssOut = new WSS4JOutInterceptor(properties);
endpoint.getOutInterceptors().add(wssOut);
...
This authorizes every method for the service Service. How to use this for
single operations? or de-/activate the authorization for a single method?
--
View this message in context:
http://cxf.547215.n5.nabble.com/Authorization-for-single-web-service-operations-Adding-something-to-SOAP-header-message-manually-tp4549777p4560140.html
Sent from the cxf-user mailing list archive at Nabble.com.