[MRM-1228] Ping service in not working

o added ping invocation to sample client


git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@883067 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Maria Odea B. Ching 2009-11-22 12:25:10 +00:00
parent 9c0bce1390
commit 2fa9e76dfc

View File

@ -23,6 +23,7 @@
import java.util.List;
import org.apache.archiva.web.xmlrpc.api.AdministrationService;
import org.apache.archiva.web.xmlrpc.api.PingService;
import org.apache.archiva.web.xmlrpc.api.beans.ManagedRepository;
import org.apache.archiva.web.xmlrpc.api.beans.RemoteRepository;
@ -55,6 +56,10 @@ public static void main( String[] args )
{
AuthenticationInfo authnInfo = new AuthenticationInfo( args[1], args[2] );
AdministrationService adminService = binder.bind( AdministrationService.class, new URL( args[0] ), authnInfo );
PingService pingService = binder.bind( PingService.class, new URL( args[0] ), authnInfo );
System.out.println( "Ping : " + pingService.ping() );
List<ManagedRepository> managedRepos = adminService.getAllManagedRepositories();
System.out.println( "\n******** Managed Repositories ********" );