diff options
author | Maria Odea B. Ching <oching@apache.org> | 2009-11-22 12:25:10 +0000 |
---|---|---|
committer | Maria Odea B. Ching <oching@apache.org> | 2009-11-22 12:25:10 +0000 |
commit | 2fa9e76dfcf7ad1020d64a8797d2cd40c9994776 (patch) | |
tree | 5cd2f80b08489072b32c755d738b72ec7de8af8e | |
parent | 9c0bce139077a7b063c72421abf02fed40682a1e (diff) | |
download | archiva-2fa9e76dfcf7ad1020d64a8797d2cd40c9994776.tar.gz archiva-2fa9e76dfcf7ad1020d64a8797d2cd40c9994776.zip |
[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
-rw-r--r-- | archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-client/src/main/java/org/apache/archiva/web/xmlrpc/client/SampleClient.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-client/src/main/java/org/apache/archiva/web/xmlrpc/client/SampleClient.java b/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-client/src/main/java/org/apache/archiva/web/xmlrpc/client/SampleClient.java index f53041805..15a42a74a 100644 --- a/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-client/src/main/java/org/apache/archiva/web/xmlrpc/client/SampleClient.java +++ b/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-client/src/main/java/org/apache/archiva/web/xmlrpc/client/SampleClient.java @@ -23,6 +23,7 @@ import java.net.URL; 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 class SampleClient { 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 ********" ); |