The relevant (I think code): SetSaleRequest request = new SetSaleRequest(); SetSaleResponse response = new SetSaleResponse();
// SENDS DATA request.setSale(Sale); request.getPeople().add(person); RSIService RSIService = new RSIService(); IRSIService iRSIService = RSIService.getPort(IRSIService.class); Map<String, Object> outProps = new HashMap<>(); outProps.put(WSHandlerConstants.ACTION, "Signature"); outProps.put(WSHandlerConstants.USER, "signingonly"); outProps.put(WSHandlerConstants.PW_CALLBACK_CLASS, ClientCallbackHandler.class.getName()); outProps.put(WSHandlerConstants.SIG_PROP_FILE, "client_sign.properties"); org.apache.cxf.endpoint.Client client = org.apache.cxf.frontend.ClientProxy.getClient(iRSIService); org.apache.cxf.endpoint.Endpoint cxfEndpoint = client.getEndpoint(); WSS4JInInterceptor wss4jin = new WSS4JInInterceptor(outProps); WSS4JOutInterceptor wss4jout = new WSS4JOutInterceptor(outProps); cxfEndpoint.getOutInterceptors().add(wss4jout); cxfEndpoint.getInInterceptors().add(wss4jin); response = iRSIService.setSale(request); System.out.println(response.isSuccess()); System.out.println("Sent"); -- Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html