Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) SOAP: adding function to get the local peer hash
thelia9f1d3a06584
diff --git a/source/de/anomic/soap/services/StatusService.java b/source/de/anomic/soap/services/StatusService.javaindex 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 clientreturn 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.wsdlindex 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)--><wsdl:part name="maxCount" type="xsd:int"/><wsdl:part name="details" type="xsd:boolean"/></wsdl:message>+ <wsdl:message name="getPeerHashRequest">+ </wsdl:message><wsdl:message name="getQueueStatusResponse">+<wsdl:part name="getQueueStatusReturn" type="apachesoap:Document"/></wsdl:message>-<wsdl:message name="createNewXMLDocumentResponse"><wsdl:part name="createNewXMLDocumentReturn" type="apachesoap:Document"/></wsdl:message>@@ -17,9 +19,9 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:part name="rootElementName" type="xsd:string"/></wsdl:message><wsdl:message name="getQueueStatusRequest">+<wsdl:part name="localqueueCount" type="xsd:int"/><wsdl:part name="loaderqueueCount" type="xsd:int"/>-<wsdl:part name="localcrawlerqueueCount" type="xsd:int"/><wsdl:part name="remotecrawlerqueueCount" type="xsd:int"/></wsdl:message>@@ -27,35 +29,43 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:part name="peerListReturn" type="apachesoap:Document"/></wsdl:message><wsdl:message name="networkResponse">+<wsdl:part name="networkReturn" type="apachesoap:Document"/></wsdl:message>-+ <wsdl:message name="getPeerHashResponse">+ <wsdl:part name="getPeerHashReturn" type="xsd:string"/>+ </wsdl:message><wsdl:message name="networkRequest"></wsdl:message><wsdl:message name="getStatusResponse"><wsdl:part name="getStatusReturn" type="apachesoap:Document"/>+</wsdl:message><wsdl:message name="getStatusRequest"></wsdl:message><wsdl:portType name="StatusService"><wsdl:operation name="getStatus">-<wsdl:input message="impl:getStatusRequest" name="getStatusRequest"/><wsdl:output message="impl:getStatusResponse" name="getStatusResponse"/></wsdl:operation><wsdl:operation name="network">+<wsdl:input message="impl:networkRequest" name="networkRequest"/><wsdl:output message="impl:networkResponse" name="networkResponse"/></wsdl:operation><wsdl:operation name="peerList" parameterOrder="peerType maxCount details"><wsdl:input message="impl:peerListRequest" name="peerListRequest"/>-<wsdl:output message="impl:peerListResponse" name="peerListResponse"/></wsdl:operation><wsdl:operation name="getQueueStatus" parameterOrder="localqueueCount loaderqueueCount localcrawlerqueueCount remotecrawlerqueueCount"><wsdl:input message="impl:getQueueStatusRequest" name="getQueueStatusRequest"/>+<wsdl:output message="impl:getQueueStatusResponse" name="getQueueStatusResponse"/></wsdl:operation>+ <wsdl:operation name="getPeerHash">+ <wsdl:input message="impl:getPeerHashRequest" name="getPeerHashRequest"/>+ <wsdl:output message="impl:getPeerHashResponse" name="getPeerHashResponse"/>+ </wsdl:operation><wsdl:operation name="createNewXMLDocument" parameterOrder="rootElementName"><wsdl:input message="impl:createNewXMLDocumentRequest" name="createNewXMLDocumentRequest"/><wsdl:output message="impl:createNewXMLDocumentResponse" name="createNewXMLDocumentResponse"/>@@ -104,6 +114,16 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/status" use="encoded"/></wsdl:output></wsdl:operation>+ <wsdl:operation name="getPeerHash">+ <wsdlsoap:operation soapAction=""/>+ <wsdl:input name="getPeerHashRequest">+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>+ </wsdl:input>++ <wsdl:output name="getPeerHashResponse">+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/status" use="encoded"/>+ </wsdl:output>+ </wsdl:operation><wsdl:operation name="createNewXMLDocument"><wsdlsoap:operation soapAction=""/><wsdl:input name="createNewXMLDocumentRequest">