mirror of
https://github.com/apache/archiva.git
synced 2025-02-22 01:44:47 +00:00
[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:
parent
9c0bce1390
commit
2fa9e76dfc
@ -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 ********" );
|
||||
|
Loading…
x
Reference in New Issue
Block a user