Authentication failure calling SharePoint Web Service (JAX-WS client)
I have to call SharePoint 2010 Lists service from a Java client. I used NetBeans to generate the JAX-WS classes from the WSDL. And extended java.net.Authenticator to manage the authentication to SharePoint : static final String user = "XXXXXXXX\\Administrateur"; // your account name static final String pass = "mypassw"; // your password for the account static class MyAuthenticator extends Authenticator { public PasswordAuthentication getPasswordAuthentication() { System.out.println("Feeding username and password for " + getRequestingScheme()); return (new PasswordAuthentication(user, pass