public class SampleClient
{
public static void main( String[] args )
{
Binder binder = new ApacheBinder();
ConnectionInfo info = new ConnectionInfo();
info.setUsername( args[1] );
info.setPassword( args[2] );
info.setTimeZone( TimeZone.getDefault() );
try
{
AdministrationService adminService = binder.bind( AdministrationService.class, new URL( args[0] ), info );
PingService pingService = binder.bind( PingService.class, new URL( args[0] ), info );
System.out.println( "Ping : " + pingService.ping() );
List<ManagedRepository> managedRepos = adminService.getAllManagedRepositories();