Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) new soap function to display log
theli5e57e0814d49
diff --git a/source/de/anomic/server/logging/GuiHandler.java b/source/de/anomic/server/logging/GuiHandler.javaindex 00c50d8b0..76292bf8e 100644--- a/source/de/anomic/server/logging/GuiHandler.java+++ b/source/de/anomic/server/logging/GuiHandler.java@@ -45,6 +45,7 @@package de.anomic.server.logging;import java.util.ArrayList;+import java.util.Date;import java.util.logging.ErrorManager;import java.util.logging.Filter;import java.util.logging.Formatter;@@ -143,23 +144,24 @@ public class GuiHandler extends Handler{this.start++;}}-- /**- * Push any buffered output to the target <tt>Handler</tt>.- * <p>- * The buffer is then cleared.- */+public synchronized LogRecord[] getLogArray() {-- LogRecord[] tempBuffer = new LogRecord[this.count];+ return this.getLogArray(null);+ }+++ public synchronized LogRecord[] getLogArray(Long sequenceNumberStart) {+ ArrayList tempBuffer = new ArrayList(this.count);for (int i = 0; i < this.count; i++) {int ix = (this.start+i)%this.buffer.length;LogRecord record = this.buffer[ix];- tempBuffer[i] = record;+ if ((sequenceNumberStart == null) || (record.getSequenceNumber() >= sequenceNumberStart.longValue())) {+ tempBuffer.add(record);+ }}- return tempBuffer;+ return (LogRecord[]) tempBuffer.toArray(new LogRecord[tempBuffer.size()]);}public synchronized String getLog(boolean reversed, int lineCount) {diff --git a/source/de/anomic/soap/AbstractService.java b/source/de/anomic/soap/AbstractService.javaindex 8d9dc1fde..db45d56d7 100644--- a/source/de/anomic/soap/AbstractService.java+++ b/source/de/anomic/soap/AbstractService.java@@ -292,7 +292,13 @@ public abstract class AbstractService {Document doc = null;try {DocumentBuilderFactory newDocBuilderFactory = DocumentBuilderFactory.newInstance();- DocumentBuilder newDocBuilder = newDocBuilderFactory.newDocumentBuilder();++ // disable dtd validation+ newDocBuilderFactory.setValidating(false);+ newDocBuilderFactory.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);+ newDocBuilderFactory.setFeature("http://xml.org/sax/features/validation", false);++ DocumentBuilder newDocBuilder = newDocBuilderFactory.newDocumentBuilder();ByteArrayInputStream byteIn = new ByteArrayInputStream(content);doc = newDocBuilder.parse(byteIn);diff --git a/source/de/anomic/soap/httpdSoapHandler.java b/source/de/anomic/soap/httpdSoapHandler.javaindex 3db3b4505..43ceb3623 100644--- a/source/de/anomic/soap/httpdSoapHandler.java+++ b/source/de/anomic/soap/httpdSoapHandler.java@@ -118,6 +118,8 @@ import de.anomic.server.logging.serverLog;*/public final class httpdSoapHandler extends httpdAbstractHandler implements httpdHandler{+ public static final String SOAP_HANDLER_VERSION = "YaCySOAP V0.1";+/* ===============================================================* Constants needed to set some SOAP properties@@ -216,12 +218,12 @@ public final class httpdSoapHandler extends httpdAbstractHandler implements http/*** Constructor of this class- * @param switchboard+ * @param theSwitchboard*/- public httpdSoapHandler(serverSwitch switchboard) {+ public httpdSoapHandler(serverSwitch theSwitchboard) {super();- this.switchboard = switchboard;+ this.switchboard = theSwitchboard;this.theLogger = new serverLog("SOAP");// create a htRootPath: system pages@@ -231,7 +233,7 @@ public final class httpdSoapHandler extends httpdAbstractHandler implements http}if (this.htTemplatePath == null) {- this.htTemplatePath = new File(switchboard.getRootPath(), switchboard.getConfig("htTemplatePath","htroot/env/templates"));+ this.htTemplatePath = new File(theSwitchboard.getRootPath(), theSwitchboard.getConfig("htTemplatePath","htroot/env/templates"));// if (!(this.htTemplatePath.exists())) this.htTemplatePath.mkdir();}@@ -246,11 +248,11 @@ public final class httpdSoapHandler extends httpdAbstractHandler implements httpadditionalServices = new Properties();// getting the property filename containing the file list- String fileName = switchboard.getConfig("soap.serviceDeploymentList","");+ String fileName = theSwitchboard.getConfig("soap.serviceDeploymentList","");if (fileName.length() > 0) {BufferedInputStream fileInput = null;try {- File deploymentFile = new File(switchboard.getRootPath(),fileName);+ File deploymentFile = new File(theSwitchboard.getRootPath(),fileName);fileInput = new BufferedInputStream(new FileInputStream(deploymentFile));// load property list@@ -384,6 +386,8 @@ public final class httpdSoapHandler extends httpdAbstractHandler implements httpDocument doc = generateWSDL(msgContext);if (doc != null) {+ // TODO: what about doc.getInputEncoding()?+ // TODO: what about getXmlEncoding?// Converting the the wsdl document into a byte-arrayString responseDoc = XMLUtils.DocumentToString(doc);byte[] result = responseDoc.getBytes("UTF-8");@@ -481,6 +485,7 @@ public final class httpdSoapHandler extends httpdAbstractHandler implements httpsendMessage(conProp,requestHeader,response,soapEx.getStatusCode(),soapEx.getStatusText(),soapErrorMsg);} else {this.theLogger.logSevere("Unexpected Exception while sending data to client",e);+}} catch (Exception ex) {// the http response header was already send. Just log the error@@ -644,6 +649,10 @@ public final class httpdSoapHandler extends httpdAbstractHandler implements httpreturn result;}+ /**+ * TODO: handle accept-charset http header+ * TODO: what about content-encoding, transfer-encoding here?+ */protected void sendMessage(Properties conProp, httpHeader requestHeader, OutputStream out, int statusCode, String statusText, String contentType, byte[] MessageBody) throws IOException {// write out the response headerrespondHeader(conProp, out, statusCode, statusText, (MessageBody==null)?null:contentType, (MessageBody==null)?-1:MessageBody.length, null, null);@@ -653,6 +662,9 @@ public final class httpdSoapHandler extends httpdAbstractHandler implements httpout.flush();}+ /**+ * TODO: handle accept-charset http header+ */protected void sendMessage(Properties conProp, httpHeader requestHeader, OutputStream out, int statusCode, String statusText, Message soapMessage) throws IOException, SOAPException {httpChunkedOutputStream chunkedOut = null;GZIPOutputStream gzipOut = null;@@ -717,7 +729,7 @@ public final class httpdSoapHandler extends httpdAbstractHandler implements httpString transferEncoding) throws IOException {httpHeader outgoingHeader = new httpHeader();- outgoingHeader.put(httpHeader.SERVER,"AnomicHTTPD (www.anomic.de)");+ outgoingHeader.put(httpHeader.SERVER, SOAP_HANDLER_VERSION);if (conttype != null) outgoingHeader.put(httpHeader.CONTENT_TYPE,conttype);if (contlength != -1) outgoingHeader.put(httpHeader.CONTENT_LENGTH, Long.toString(contlength));if (contentEncoding != null) outgoingHeader.put(httpHeader.CONTENT_ENCODING, contentEncoding);diff --git a/source/de/anomic/soap/services/AdminService.java b/source/de/anomic/soap/services/AdminService.javaindex 28ee5451b..a727b62ea 100644--- a/source/de/anomic/soap/services/AdminService.java+++ b/source/de/anomic/soap/services/AdminService.java@@ -46,6 +46,10 @@package de.anomic.soap.services;import java.util.ArrayList;+import java.util.logging.Handler;+import java.util.logging.LogRecord;+import java.util.logging.Logger;+import java.util.logging.XMLFormatter;import javax.xml.parsers.ParserConfigurationException;@@ -58,6 +62,7 @@ import de.anomic.plasma.plasmaSwitchboard;import de.anomic.server.serverCore;import de.anomic.server.serverObjects;import de.anomic.server.serverThread;+import de.anomic.server.logging.GuiHandler;import de.anomic.soap.AbstractService;import de.anomic.yacy.yacyCore;import de.anomic.yacy.yacySeed;@@ -514,13 +519,14 @@ public class AdminService extends AbstractService {}/**+ * Function to configure the message forwarding settings of a peer.+ * @see <a href="http://localhost:8080/Settings_p.html?page=messageForwarding">Peer Configuration - Message Forwarding</a>*- * @param enableForwarding- * @param forwardingCommand- * @param forwardingTo- * @throws AxisFault+ * @param enableForwarding specifies if forwarding should be enabled+ * @param forwardingCommand the forwarding command to use. e.g. <code>/usr/sbin/sendmail</code>+ * @param forwardingTo the delivery destination. e.g. <code>root@localhost</code>*- * @link <a href="http://localhost:8080/Settings_p.html?page=messageForwarding">Peer Configuration - Message Forwarding</a>+ * @throws AxisFault if authentication failed*/public void setMessageForwarding(Boolean enableForwarding,@@ -545,6 +551,8 @@ public class AdminService extends AbstractService {}/**+ * Function to query the current message forwarding configuration of a peer.+ * @see <a href="http://localhost:8080/Settings_p.html?page=messageForwarding">Peer Configuration - Message Forwarding</a>** @return a XML document of the following format* <pre>@@ -555,10 +563,9 @@ public class AdminService extends AbstractService {* <msgForwardingTo>root@localhost</msgForwardingTo>* </msgForwarding>* </pre>- * @throws AxisFault- * @throws ParserConfigurationException*- * @link <a href="http://localhost:8080/Settings_p.html?page=messageForwarding">Peer Configuration - Message Forwarding</a>+ * @throws AxisFault if authentication failed+ * @throws ParserConfigurationException on XML parser errors*/public Document getMessageForwarding() throws AxisFault, ParserConfigurationException {// extracting the message context@@ -583,4 +590,42 @@ public class AdminService extends AbstractService {return xmlDoc;}++ public Document getServerLog(Long sequenceNumber) throws Exception {+ // extracting the message context+ extractMessageContext(AUTHENTICATION_NEEDED);++ Handler logHandler = null;+ LogRecord[] log = null;++ // getting the root handler+ Logger logger = Logger.getLogger("");++ // take a look for the GuiHandler+ Handler[] handlers = logger.getHandlers();+ for (int i=0; i<handlers.length; i++) {+ if (handlers[i] instanceof GuiHandler) {+ // getting the log records+ logHandler = handlers[i];+ log = ((GuiHandler)logHandler).getLogArray(sequenceNumber);+ break;+ }+ }++ StringBuffer buffer = new StringBuffer();++ // format them into xml+ XMLFormatter formatter = new XMLFormatter();+ buffer.append(formatter.getHead(logHandler));++ // format the logging entries+ for (int i=0; i < log.length; i++) {+ buffer.append(formatter.format(log[i]));+ }++ buffer.append(formatter.getTail(logHandler));++ // convert into dom+ return convertContentToXML(buffer.toString());+ }}diff --git a/source/de/anomic/soap/services/admin.wsdl b/source/de/anomic/soap/services/admin.wsdlindex 2027a405e..d9597a1cd 100644--- a/source/de/anomic/soap/services/admin.wsdl+++ b/source/de/anomic/soap/services/admin.wsdl@@ -16,180 +16,191 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http<wsdl:message name="enableRemoteProxyRequest"><wsdl:part name="enableProxy" type="xsd:boolean"/></wsdl:message>+ <wsdl:message name="getServerLogResponse">+ <wsdl:part name="getServerLogReturn" type="apachesoap:Document"/>+ </wsdl:message>+<wsdl:message name="setPeerNameRequest"><wsdl:part name="newName" type="xsd:string"/></wsdl:message>-<wsdl:message name="getConfigPropertyRequest"><wsdl:part name="key" type="xsd:string"/></wsdl:message><wsdl:message name="getTransferPropertiesRequest"></wsdl:message><wsdl:message name="setRemoteProxyResponse">+</wsdl:message><wsdl:message name="getConfigPropertyListRequest"></wsdl:message>-<wsdl:message name="enableRemoteProxyResponse"></wsdl:message><wsdl:message name="getConfigPropertiesResponse"><wsdl:part name="getConfigPropertiesReturn" type="impl:ArrayOf_xsd_string"/></wsdl:message><wsdl:message name="createNewXMLDocumentResponse">+<wsdl:part name="createNewXMLDocumentReturn" type="apachesoap:Document"/></wsdl:message><wsdl:message name="getConfigPropertiesRequest">-<wsdl:part name="keys" type="impl:ArrayOf_xsd_string"/></wsdl:message><wsdl:message name="getVersionRequest"></wsdl:message><wsdl:message name="setPeerPortResponse"></wsdl:message>+<wsdl:message name="setTransferPropertiesRequest"><wsdl:part name="indexDistribution" type="xsd:boolean"/><wsdl:part name="indexDistributeWhileCrawling" type="xsd:boolean"/>-<wsdl:part name="indexReceive" type="xsd:boolean"/><wsdl:part name="indexReceiveBlockBlacklist" type="xsd:boolean"/></wsdl:message>+ <wsdl:message name="getServerLogRequest">+ <wsdl:part name="sequenceNumber" type="xsd:long"/>+ </wsdl:message>+<wsdl:message name="getMessageForwardingResponse"><wsdl:part name="getMessageForwardingReturn" type="apachesoap:Document"/></wsdl:message><wsdl:message name="getConfigPropertyListResponse"><wsdl:part name="getConfigPropertyListReturn" type="apachesoap:Document"/></wsdl:message>-<wsdl:message name="setPeerPortRequest"><wsdl:part name="newPort" type="xsd:int"/></wsdl:message>+<wsdl:message name="getTransferPropertiesResponse"><wsdl:part name="getTransferPropertiesReturn" type="apachesoap:Document"/></wsdl:message><wsdl:message name="setMessageForwardingRequest"><wsdl:part name="enableForwarding" type="xsd:boolean"/><wsdl:part name="forwardingCommand" type="xsd:string"/>-<wsdl:part name="forwardingTo" type="xsd:string"/></wsdl:message><wsdl:message name="getConfigPropertyResponse">+<wsdl:part name="getConfigPropertyReturn" type="xsd:string"/></wsdl:message><wsdl:message name="setPropertiesRequest"><wsdl:part name="keys" type="impl:ArrayOf_xsd_string"/><wsdl:part name="values" type="impl:ArrayOf_xsd_string"/></wsdl:message>-<wsdl:message name="setRemoteProxyRequest"><wsdl:part name="enableRemoteProxy" type="xsd:boolean"/><wsdl:part name="proxyHost" type="xsd:string"/>+<wsdl:part name="proxyPort" type="xsd:int"/><wsdl:part name="proxyUserName" type="xsd:string"/><wsdl:part name="proxyPwd" type="xsd:string"/><wsdl:part name="noProxyList" type="xsd:string"/><wsdl:part name="useProxy4YaCy" type="xsd:boolean"/><wsdl:part name="useProxy4SSL" type="xsd:boolean"/>-</wsdl:message><wsdl:message name="setConfigPropertyResponse"></wsdl:message>+<wsdl:message name="setDistributedCrawlingRequest"><wsdl:part name="enableRemoteTriggeredCrawls" type="xsd:boolean"/><wsdl:part name="maximumAllowedPPM" type="xsd:int"/></wsdl:message><wsdl:message name="getVersionResponse"><wsdl:part name="getVersionReturn" type="apachesoap:Document"/>-</wsdl:message><wsdl:message name="setPropertiesResponse"></wsdl:message>+<wsdl:message name="setPeerNameResponse"></wsdl:message><wsdl:message name="setConfigPropertyRequest"><wsdl:part name="key" type="xsd:string"/><wsdl:part name="value" type="xsd:string"/></wsdl:message>-<wsdl:message name="setDistributedCrawlingResponse"></wsdl:message><wsdl:message name="shutdownPeerRequest">+</wsdl:message><wsdl:portType name="AdminService"><wsdl:operation name="setProperties" parameterOrder="keys values"><wsdl:input message="impl:setPropertiesRequest" name="setPropertiesRequest"/><wsdl:output message="impl:setPropertiesResponse" name="setPropertiesResponse"/></wsdl:operation>-<wsdl:operation name="getVersion"><wsdl:input message="impl:getVersionRequest" name="getVersionRequest"/><wsdl:output message="impl:getVersionResponse" name="getVersionResponse"/>+</wsdl:operation><wsdl:operation name="setConfigProperty" parameterOrder="key value"><wsdl:input message="impl:setConfigPropertyRequest" name="setConfigPropertyRequest"/><wsdl:output message="impl:setConfigPropertyResponse" name="setConfigPropertyResponse"/></wsdl:operation><wsdl:operation name="getConfigProperty" parameterOrder="key">-<wsdl:input message="impl:getConfigPropertyRequest" name="getConfigPropertyRequest"/><wsdl:output message="impl:getConfigPropertyResponse" name="getConfigPropertyResponse"/></wsdl:operation>+<wsdl:operation name="getConfigProperties" parameterOrder="keys"><wsdl:input message="impl:getConfigPropertiesRequest" name="getConfigPropertiesRequest"/><wsdl:output message="impl:getConfigPropertiesResponse" name="getConfigPropertiesResponse"/></wsdl:operation><wsdl:operation name="getConfigPropertyList"><wsdl:input message="impl:getConfigPropertyListRequest" name="getConfigPropertyListRequest"/>-<wsdl:output message="impl:getConfigPropertyListResponse" name="getConfigPropertyListResponse"/></wsdl:operation><wsdl:operation name="setPeerName" parameterOrder="newName">+<wsdl:input message="impl:setPeerNameRequest" name="setPeerNameRequest"/><wsdl:output message="impl:setPeerNameResponse" name="setPeerNameResponse"/></wsdl:operation><wsdl:operation name="setPeerPort" parameterOrder="newPort"><wsdl:input message="impl:setPeerPortRequest" name="setPeerPortRequest"/><wsdl:output message="impl:setPeerPortResponse" name="setPeerPortResponse"/>-</wsdl:operation><wsdl:operation name="enableRemoteProxy" parameterOrder="enableProxy"><wsdl:input message="impl:enableRemoteProxyRequest" name="enableRemoteProxyRequest"/>+<wsdl:output message="impl:enableRemoteProxyResponse" name="enableRemoteProxyResponse"/></wsdl:operation><wsdl:operation name="setRemoteProxy" parameterOrder="enableRemoteProxy proxyHost proxyPort proxyUserName proxyPwd noProxyList useProxy4YaCy useProxy4SSL"><wsdl:input message="impl:setRemoteProxyRequest" name="setRemoteProxyRequest"/><wsdl:output message="impl:setRemoteProxyResponse" name="setRemoteProxyResponse"/></wsdl:operation>-<wsdl:operation name="shutdownPeer"><wsdl:input message="impl:shutdownPeerRequest" name="shutdownPeerRequest"/><wsdl:output message="impl:shutdownPeerResponse" name="shutdownPeerResponse"/>+</wsdl:operation><wsdl:operation name="setDistributedCrawling" parameterOrder="enableRemoteTriggeredCrawls maximumAllowedPPM"><wsdl:input message="impl:setDistributedCrawlingRequest" name="setDistributedCrawlingRequest"/><wsdl:output message="impl:setDistributedCrawlingResponse" name="setDistributedCrawlingResponse"/></wsdl:operation><wsdl:operation name="setTransferProperties" parameterOrder="indexDistribution indexDistributeWhileCrawling indexReceive indexReceiveBlockBlacklist">-<wsdl:input message="impl:setTransferPropertiesRequest" name="setTransferPropertiesRequest"/><wsdl:output message="impl:setTransferPropertiesResponse" name="setTransferPropertiesResponse"/></wsdl:operation>+<wsdl:operation name="getTransferProperties"><wsdl:input message="impl:getTransferPropertiesRequest" name="getTransferPropertiesRequest"/><wsdl:output message="impl:getTransferPropertiesResponse" name="getTransferPropertiesResponse"/></wsdl:operation><wsdl:operation name="setMessageForwarding" parameterOrder="enableForwarding forwardingCommand forwardingTo"><wsdl:input message="impl:setMessageForwardingRequest" name="setMessageForwardingRequest"/>-<wsdl:output message="impl:setMessageForwardingResponse" name="setMessageForwardingResponse"/></wsdl:operation><wsdl:operation name="getMessageForwarding">+<wsdl:input message="impl:getMessageForwardingRequest" name="getMessageForwardingRequest"/><wsdl:output message="impl:getMessageForwardingResponse" name="getMessageForwardingResponse"/></wsdl:operation>+ <wsdl:operation name="getServerLog" parameterOrder="sequenceNumber">+ <wsdl:input message="impl:getServerLogRequest" name="getServerLogRequest"/>+ <wsdl:output message="impl:getServerLogResponse" name="getServerLogResponse"/>+ </wsdl:operation><wsdl:operation name="createNewXMLDocument" parameterOrder="rootElementName"><wsdl:input message="impl:createNewXMLDocumentRequest" name="createNewXMLDocumentRequest"/>- <wsdl:output message="impl:createNewXMLDocumentResponse" name="createNewXMLDocumentResponse"/>+ <wsdl:output message="impl:createNewXMLDocumentResponse" name="createNewXMLDocumentResponse"/></wsdl:operation></wsdl:portType><wsdl:binding name="adminSoapBinding" type="impl:AdminService">@@ -198,8 +209,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http<wsdlsoap:operation soapAction=""/><wsdl:input name="setPropertiesRequest"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>- </wsdl:input>+ </wsdl:input><wsdl:output name="setPropertiesResponse"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/></wsdl:output>@@ -208,8 +219,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http<wsdlsoap:operation soapAction=""/><wsdl:input name="getVersionRequest"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>- </wsdl:input>+ </wsdl:input><wsdl:output name="getVersionResponse"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/></wsdl:output>@@ -218,8 +229,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http<wsdlsoap:operation soapAction=""/><wsdl:input name="setConfigPropertyRequest"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>- </wsdl:input>+ </wsdl:input><wsdl:output name="setConfigPropertyResponse"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/></wsdl:output>@@ -228,8 +239,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http<wsdlsoap:operation soapAction=""/><wsdl:input name="getConfigPropertyRequest"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>- </wsdl:input>+ </wsdl:input><wsdl:output name="getConfigPropertyResponse"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/></wsdl:output>@@ -238,8 +249,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http<wsdlsoap:operation soapAction=""/><wsdl:input name="getConfigPropertiesRequest"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>- </wsdl:input>+ </wsdl:input><wsdl:output name="getConfigPropertiesResponse"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/></wsdl:output>@@ -248,8 +259,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http<wsdlsoap:operation soapAction=""/><wsdl:input name="getConfigPropertyListRequest"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>- </wsdl:input>+ </wsdl:input><wsdl:output name="getConfigPropertyListResponse"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/></wsdl:output>@@ -258,8 +269,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http<wsdlsoap:operation soapAction=""/><wsdl:input name="setPeerNameRequest"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>- </wsdl:input>+ </wsdl:input><wsdl:output name="setPeerNameResponse"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/></wsdl:output>@@ -268,8 +279,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http<wsdlsoap:operation soapAction=""/><wsdl:input name="setPeerPortRequest"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>- </wsdl:input>+ </wsdl:input><wsdl:output name="setPeerPortResponse"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/></wsdl:output>@@ -278,8 +289,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http<wsdlsoap:operation soapAction=""/><wsdl:input name="enableRemoteProxyRequest"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>- </wsdl:input>+ </wsdl:input><wsdl:output name="enableRemoteProxyResponse"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/></wsdl:output>@@ -288,8 +299,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http<wsdlsoap:operation soapAction=""/><wsdl:input name="setRemoteProxyRequest"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>- </wsdl:input>+ </wsdl:input><wsdl:output name="setRemoteProxyResponse"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/></wsdl:output>@@ -298,8 +309,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http<wsdlsoap:operation soapAction=""/><wsdl:input name="shutdownPeerRequest"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>- </wsdl:input>+ </wsdl:input><wsdl:output name="shutdownPeerResponse"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/></wsdl:output>@@ -308,8 +319,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http<wsdlsoap:operation soapAction=""/><wsdl:input name="setDistributedCrawlingRequest"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>- </wsdl:input>+ </wsdl:input><wsdl:output name="setDistributedCrawlingResponse"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/></wsdl:output>@@ -318,8 +329,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http<wsdlsoap:operation soapAction=""/><wsdl:input name="setTransferPropertiesRequest"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>- </wsdl:input>+ </wsdl:input><wsdl:output name="setTransferPropertiesResponse"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/></wsdl:output>@@ -328,8 +339,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http<wsdlsoap:operation soapAction=""/><wsdl:input name="getTransferPropertiesRequest"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>- </wsdl:input>+ </wsdl:input><wsdl:output name="getTransferPropertiesResponse"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/></wsdl:output>@@ -338,8 +349,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http<wsdlsoap:operation soapAction=""/><wsdl:input name="setMessageForwardingRequest"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>- </wsdl:input>+ </wsdl:input><wsdl:output name="setMessageForwardingResponse"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/></wsdl:output>@@ -348,18 +359,28 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http<wsdlsoap:operation soapAction=""/><wsdl:input name="getMessageForwardingRequest"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>- </wsdl:input>+ </wsdl:input><wsdl:output name="getMessageForwardingResponse"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/></wsdl:output></wsdl:operation>+ <wsdl:operation name="getServerLog">+ <wsdlsoap:operation soapAction=""/>+ <wsdl:input name="getServerLogRequest">+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>++ </wsdl:input>+ <wsdl:output name="getServerLogResponse">+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/>+ </wsdl:output>+ </wsdl:operation><wsdl:operation name="createNewXMLDocument"><wsdlsoap:operation soapAction=""/><wsdl:input name="createNewXMLDocumentRequest"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://soap.anomic.de" use="encoded"/>- </wsdl:input>+ </wsdl:input><wsdl:output name="createNewXMLDocumentResponse"><wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/></wsdl:output>@@ -368,7 +389,7 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http<wsdl:service name="AdminServiceService"><wsdl:port binding="impl:adminSoapBinding" name="admin"><wsdlsoap:address location="http://yacy:8080/soap/admin"/>- </wsdl:port>+ </wsdl:port></wsdl:service></wsdl:definitions>\ No newline at end of filediff --git a/test/de/anomic/soap/services/AdminServiceTest.java b/test/de/anomic/soap/services/AdminServiceTest.javaindex 2e72d923b..845d07285 100644--- a/test/de/anomic/soap/services/AdminServiceTest.java+++ b/test/de/anomic/soap/services/AdminServiceTest.java@@ -63,4 +63,9 @@ public class AdminServiceTest extends AbstractServiceTest {(String)oldValues.get("msgForwardingTo"));}++ public void testGetServerLog() throws RemoteException {+ Document xml = ((AdminService)service).getServerLog(0);+ System.out.println(XMLUtils.DocumentToString(xml));+ }}