From a9f1d3a065844f4ee583f52028770af8ea126c2d Mon Sep 17 00:00:00 2001 From: theli Date: Fri, 22 Dec 2006 11:31:48 +0000 Subject: [PATCH] *) SOAP: adding function to get the local peer hash git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3117 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- .../anomic/soap/services/StatusService.java | 11 +++++++ source/de/anomic/soap/services/status.wsdl | 30 +++++++++++++++---- 2 files changed, 36 insertions(+), 5 deletions(-) diff --git a/source/de/anomic/soap/services/StatusService.java b/source/de/anomic/soap/services/StatusService.java index a6b3c5755..826176196 100644 --- a/source/de/anomic/soap/services/StatusService.java +++ b/source/de/anomic/soap/services/StatusService.java @@ -50,6 +50,7 @@ import org.w3c.dom.Document; import de.anomic.server.serverObjects; import de.anomic.soap.AbstractService; +import de.anomic.yacy.yacyCore; public class StatusService extends AbstractService { @@ -200,4 +201,14 @@ public class StatusService extends AbstractService { // sending back the result to the client return this.convertContentToXML(result); } + + + public String getPeerHash() throws AxisFault { + // extracting the message context + extractMessageContext(AUTHENTICATION_NEEDED); + + // return the peer hash + return yacyCore.seedDB.mySeed.getHexHash(); + } + } diff --git a/source/de/anomic/soap/services/status.wsdl b/source/de/anomic/soap/services/status.wsdl index b88145db8..a837c20d9 100644 --- a/source/de/anomic/soap/services/status.wsdl +++ b/source/de/anomic/soap/services/status.wsdl @@ -6,10 +6,12 @@ Built on Apr 22, 2006 (06:55:48 PDT)--> + + + - @@ -17,9 +19,9 @@ Built on Apr 22, 2006 (06:55:48 PDT)--> + - @@ -27,35 +29,43 @@ Built on Apr 22, 2006 (06:55:48 PDT)--> + - + + + + - + - + + + + + @@ -104,6 +114,16 @@ Built on Apr 22, 2006 (06:55:48 PDT)--> + + + + + + + + + +