Implementation Details

From Plnwiki

Authentication

The LOCKSS web services are protected against unauthorized use by authentication.

As a result, the client must provide valid credentials in the form of a user name and password.

If the provided credentials are not valid, the client will not be allowed to connect. In the case of Java clients built using standard libraries, a bug in the HTTP code causes authentication failures to issue a confusing message:

 Failed to access the WSDL at: http://host.org:8081/ws/DaemonStatusService?wsdl: It failed with:
     Server redirected too many  times (20).

or throw a misleading exception:

Exception in thread "main" javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.
...
Caused by: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.
...
Caused by: java.net.ProtocolException: Server redirected too many  times (20)
...