((BindingProvider)stub).getRequestContext().
put(com.sun.xml.wss.XWSSConstants.USERNAME_PROPERTY, "alice");
((BindingProvider)stub).getRequestContext().
put(com.sun.xml.wss.XWSSConstants.PASSWORD_PROPERTY, "alice");
stub.ping(new Holder("1"), new Holder("sun"), new Holder("Passed!"));
// Ping again
stub.ping(new Holder("1"), new Holder("sun"), new Holder("Passed again!"));
// Ping the third time
stub.ping(new Holder("1"), new Holder("sun"), new Holder("Passed again again!"));
} catch (Exception ex) {
System.out.println ("Caught Exception: " + ex.getMessage() );
ex.printStackTrace();