Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) new xml template to view peer profile as xml *) bugfix for wrong profile display (some fields where displayed twice) *) new soap functions to get and set peer profile

thelibd3710a974ae
diff --git a/htroot/ViewProfile.java b/htroot/ViewProfile.java
index f87d9c667..5c31cee31 100644
--- a/htroot/ViewProfile.java
+++ b/htroot/ViewProfile.java
@@ -50,6 +50,7 @@ import java.io.FileInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
+import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Properties;
@@ -139,7 +140,7 @@ public class ViewProfile {
}
Map.Entry entry;
// all known keys which should be set as they are
- ArrayList knownKeys = new ArrayList();
+ HashSet knownKeys = new HashSet();
knownKeys.add("name");
knownKeys.add("nickname");
// knownKeys.add("homepage");//+http
@@ -160,7 +161,7 @@ public class ViewProfile {
int numUnknown = 0;
while (i.hasNext()) {
entry = (Map.Entry) i.next();
- String key = (String) entry.getKey();
+ String key = ((String) entry.getKey());
String value = new String();
// only comments get "wikified"
@@ -172,16 +173,20 @@ public class ViewProfile {
}
//all known Keys which should be set as they are
- if ((knownKeys.contains(key)) && (value.length() > 0)) {
- prop.put("success_" + key, 1);
- prop.put("success_" + key + "_value", value);
- //special handling, hide flower if no icq uin is set
- } else if ((key.equals("homepage")) && (value.length() > 0)) {
- if (!(value.startsWith("http"))) {
- value = "http://" + value;
- }
- prop.put("success_" + key, 1);
- prop.put("success_" + key + "_value", value);
+ if (knownKeys.contains(key)) {
+ if (value.length() > 0) {
+ prop.put("success_" + key, 1);
+ prop.put("success_" + key + "_value", value);
+ }
+ //special handling, hide flower if no icq uin is set
+ } else if (key.equals("homepage")) {
+ if (value.length() > 0) {
+ if (!(value.startsWith("http"))) {
+ value = "http://" + value;
+ }
+ prop.put("success_" + key, 1);
+ prop.put("success_" + key + "_value", value);
+ }
//This will display unknown items(of newer versions) as plaintext
} else {
//unknown
diff --git a/htroot/ViewProfile.xml b/htroot/ViewProfile.xml
new file mode 100644
index 000000000..a4f1e7312
--- /dev/null
+++ b/htroot/ViewProfile.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<profile>
+ <status code="#[success]#">
+ #(success)#Wrong access of this page
+ ::The requested peer is unknown or a potential peer.The profile can't be fetched.
+ ::The peer #[peername]# is not online.
+ ::Peer profile successfully fetched
+ #(/success)#
+ </status>
+
+ #(success)#::::::
+ <name>#(name)#::<![CDATA[#[value]#]]>#(/name)#</name>
+ <nickname>#(nickname)#::<![CDATA[#[value]#]]>#(/nickname)#</nickname>
+ <homepage>#(homepage)#::<![CDATA[#[value]#]]>#(/homepage)#</homepage>
+ <email>#(email)#::<![CDATA[#[value]#]]>#(/email)#</email>
+ <icq>#(icq)#::<![CDATA[#[value]#]]>#(/icq)#</icq>
+ <jabber>#(jabber)#::<![CDATA[#[value]#]]>#(/jabber)#</jabber>
+ <yahoo>#(yahoo)#::<![CDATA[#[value]#]]>#(/yahoo)#</yahoo>
+ <msn>#(msn)#::<![CDATA[#[value]#]]>#(/msn)#</msn>
+ <comment>#(comment)#::<![CDATA[#[value]#]]>#(/comment)#</comment>
+
+ <!-- optional profile fields -->
+ #{other}#
+ <optional>
+ <name><![CDATA[#[key]#]]></name>
+ <value><![CDATA[#[value]#]]></value>
+ </optional>
+ #{/other}#
+ #(/success)#
+</profile>
\ No newline at end of file
diff --git a/source/de/anomic/soap/services/AdminService.java b/source/de/anomic/soap/services/AdminService.java
index 882b8c5a7..c3780c43e 100644
--- a/source/de/anomic/soap/services/AdminService.java
+++ b/source/de/anomic/soap/services/AdminService.java
@@ -45,7 +45,12 @@
package de.anomic.soap.services;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
import java.util.ArrayList;
+import java.util.Properties;
import java.util.logging.Handler;
import java.util.logging.LogRecord;
import java.util.logging.Logger;
@@ -65,6 +70,7 @@ 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.yacyNewsRecord;
import de.anomic.yacy.yacySeed;
public class AdminService extends AbstractService {
@@ -106,12 +112,25 @@ public class AdminService extends AbstractService {
private static final String MSG_FORWARDING_ENABLED = "msgForwardingEnabled";
private static final String MSG_FORWARDING = "msgForwarding";
+ // peer profile
+ private static final String PEERPROFILE_COMMENT = "comment";
+ private static final String PEERPROFILE_MSN = "msn";
+ private static final String PEERPROFILE_YAHOO = "yahoo";
+ private static final String PEERPROFILE_JABBER = "jabber";
+ private static final String PEERPROFILE_ICQ = "icq";
+ private static final String PEERPROFILE_EMAIL = "email";
+ private static final String PEERPROFILE_HOMEPAGE = "homepage";
+ private static final String PEERPROFILE_NICKNAME = "nickname";
+ private static final String PEERPROFILE_NAME = "name";
+ private static final String PEER_PROFILE_FETCH_SUCCESS = "success";
+ private static final String PEER_HASH = "hash";
/* =====================================================================
* Used XML Templates
* ===================================================================== */
private static final String TEMPLATE_CONFIG_XML = "xml/config_p.xml";
private static final String TEMPLATE_VERSION_XML = "xml/version.xml";
+ private static final String TEMPLATE_PROFILE_XML = "ViewProfile.xml";
/**
* This function can be used to set a configuration option
@@ -665,4 +684,133 @@ public class AdminService extends AbstractService {
// convert into dom
return convertContentToXML(buffer.toString());
}
+
+ /**
+ * Function to configure the profile of this peer.
+ * If a input parameters is <code>null</code> the old value will not be overwritten.
+ *
+ * @param name the name of the peer owner
+ * @param nickname peer owner nick name
+ * @param homepage
+ * @param email
+ * @param icq
+ * @param jabber
+ * @param yahoo
+ * @param msn
+ * @param comments
+ *
+ * @throws AxisFault if authentication failed
+ */
+ public void setLocalPeerProfile(
+ String name,
+ String nickname,
+ String homepage,
+ String email,
+ String icq,
+ String jabber,
+ String yahoo,
+ String msn,
+ String comments
+ ) throws AxisFault {
+ // extracting the message context
+ extractMessageContext(AUTHENTICATION_NEEDED);
+
+ // load peer properties
+ final Properties profile = new Properties();
+ FileInputStream fileIn = null;
+ try {
+ fileIn = new FileInputStream(new File("DATA/SETTINGS/profile.txt"));
+ profile.load(fileIn);
+ } catch(IOException e) {
+ throw new AxisFault("Unable to load the peer profile");
+ } finally {
+ if (fileIn != null) try { fileIn.close(); } catch (Exception e) {/* */}
+ }
+
+ // set all properties
+ if (name != null) profile.setProperty(PEERPROFILE_NAME,name);
+ if (nickname != null) profile.setProperty(PEERPROFILE_NICKNAME,nickname);
+ if (homepage != null) profile.setProperty(PEERPROFILE_HOMEPAGE,homepage);
+ if (email != null) profile.setProperty(PEERPROFILE_EMAIL,email);
+ if (icq != null) profile.setProperty(PEERPROFILE_ICQ,icq);
+ if (jabber != null) profile.setProperty(PEERPROFILE_JABBER,jabber);
+ if (yahoo != null) profile.setProperty(PEERPROFILE_YAHOO,yahoo);
+ if (msn != null) profile.setProperty(PEERPROFILE_MSN,msn);
+ if (comments != null) profile.setProperty(PEERPROFILE_COMMENT,comments);
+
+ // store it
+ FileOutputStream fileOut = null;
+ try {
+ fileOut = new FileOutputStream(new File("DATA/SETTINGS/profile.txt"));
+ profile.store(fileOut , null );
+
+ // generate a news message
+ Properties news = profile;
+ news.remove(PEERPROFILE_COMMENT);
+ yacyCore.newsPool.publishMyNews(new yacyNewsRecord("prfleupd", news));
+ } catch(IOException e) {
+ throw new AxisFault("Unable to write profile data to file");
+ } finally {
+ if (fileOut != null) try { fileOut.close(); } catch (Exception e) {/* */}
+ }
+ }
+
+ /**
+ * Returns the peer profile of this peer
+ * @return a xml document in the same format as returned by function {@link #getPeerProfile(String)}
+ * @throws Exception
+ */
+ public Document getLocalPeerProfile() throws Exception {
+ return this.getPeerProfile("localhash");
+ }
+
+ /**
+ * Function to query the profile of a remote peer
+ * @param peerhash the peer hash
+ * @return a xml document in the following format
+ * <pre>
+ * &lt;?xml version="1.0" encoding="UTF-8"?&gt;
+ * &lt;profile&gt;
+ * &lt;status code="3"&gt;Peer profile successfully fetched&lt;/status&gt;
+ * &lt;name&gt;&lt;![CDATA[myName]]&gt;&lt;/name&gt;
+ * &lt;nickname&gt;&lt;![CDATA[myNickName]]&gt;&lt;/nickname&gt;
+ * &lt;homepage&gt;&lt;![CDATA[http://myhompage.de]]&gt;&lt;/homepage&gt;
+ * &lt;email/&gt;
+ * &lt;icq/&gt;
+ * &lt;jabber/&gt;
+ * &lt;yahoo/&gt;
+ * &lt;msn/&gt;
+ * &lt;comment&gt;&lt;![CDATA[Comments]]&gt;&lt;/comment&gt;
+ * &lt;/profile&gt;
+ * </pre>
+ * @throws Exception if authentication failed
+ */
+ public Document getPeerProfile(String peerhash) throws Exception {
+ // extracting the message context
+ extractMessageContext(AUTHENTICATION_NEEDED);
+
+ // generating the template containing the network status information
+ serverObjects args = new serverObjects();
+ args.put(PEER_HASH,peerhash);
+
+ // invoke servlet
+ serverObjects tp = invokeServlet(TEMPLATE_PROFILE_XML,args);
+
+ // query status
+ if (tp.containsKey(PEER_PROFILE_FETCH_SUCCESS)) {
+ String success = tp.get(PEER_PROFILE_FETCH_SUCCESS,"3");
+ if (success.equals("0")) throw new AxisFault("Invalid parameters passed to servlet.");
+ else if (success.equals("1")) throw new AxisFault("The requested peer is unknown or can not be accessed.");
+ else if (success.equals("2")) throw new AxisFault("The requested peer is offline");
+ } else {
+ throw new AxisFault("Unkown error. Unable to determine profile fetching status.");
+ }
+
+
+ // generate output
+ byte[] result = buildServletOutput(TEMPLATE_PROFILE_XML, tp);
+
+ // sending back the result to the client
+ return this.convertContentToXML(result);
+ }
}
diff --git a/source/de/anomic/soap/services/admin.wsdl b/source/de/anomic/soap/services/admin.wsdl
index d9597a1cd..652765d17 100644
--- a/source/de/anomic/soap/services/admin.wsdl
+++ b/source/de/anomic/soap/services/admin.wsdl
@@ -33,173 +33,184 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http
</wsdl:message>
<wsdl:message name="getConfigPropertyListRequest">
</wsdl:message>
+ <wsdl:message name="getPeerProfileResponse">
+ <wsdl:part name="getPeerProfileReturn" type="apachesoap:Document"/>
+ </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="getPeerProfileRequest">
+ <wsdl:part name="peerhash" type="xsd:string"/>
+
+ </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="getPeerProfile" parameterOrder="peerhash">
+ <wsdl:input message="impl:getPeerProfileRequest" name="getPeerProfileRequest"/>
+ <wsdl:output message="impl:getPeerProfileResponse" name="getPeerProfileResponse"/>
+ </wsdl:operation>
<wsdl:operation name="createNewXMLDocument" parameterOrder="rootElementName">
- <wsdl:input message="impl:createNewXMLDocumentRequest" name="createNewXMLDocumentRequest"/>
+ <wsdl:input message="impl:createNewXMLDocumentRequest" name="createNewXMLDocumentRequest"/>
<wsdl:output message="impl:createNewXMLDocumentResponse" name="createNewXMLDocumentResponse"/>
</wsdl:operation>
</wsdl:portType>
@@ -208,8 +219,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http
<wsdl:operation name="setProperties">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="setPropertiesRequest">
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
</wsdl:input>
<wsdl:output name="setPropertiesResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/>
@@ -218,8 +229,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http
<wsdl:operation name="getVersion">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getVersionRequest">
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
</wsdl:input>
<wsdl:output name="getVersionResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/>
@@ -228,8 +239,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http
<wsdl:operation name="setConfigProperty">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="setConfigPropertyRequest">
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
</wsdl:input>
<wsdl:output name="setConfigPropertyResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/>
@@ -238,8 +249,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http
<wsdl:operation name="getConfigProperty">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getConfigPropertyRequest">
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
</wsdl:input>
<wsdl:output name="getConfigPropertyResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/>
@@ -248,8 +259,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http
<wsdl:operation name="getConfigProperties">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getConfigPropertiesRequest">
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
</wsdl:input>
<wsdl:output name="getConfigPropertiesResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/>
@@ -258,8 +269,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http
<wsdl:operation name="getConfigPropertyList">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getConfigPropertyListRequest">
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
</wsdl:input>
<wsdl:output name="getConfigPropertyListResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/>
@@ -268,8 +279,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http
<wsdl:operation name="setPeerName">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="setPeerNameRequest">
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
</wsdl:input>
<wsdl:output name="setPeerNameResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/>
@@ -278,8 +289,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http
<wsdl:operation name="setPeerPort">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="setPeerPortRequest">
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
</wsdl:input>
<wsdl:output name="setPeerPortResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/>
@@ -288,8 +299,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http
<wsdl:operation name="enableRemoteProxy">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="enableRemoteProxyRequest">
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
</wsdl:input>
<wsdl:output name="enableRemoteProxyResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/>
@@ -298,8 +309,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http
<wsdl:operation name="setRemoteProxy">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="setRemoteProxyRequest">
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
</wsdl:input>
<wsdl:output name="setRemoteProxyResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/>
@@ -308,8 +319,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http
<wsdl:operation name="shutdownPeer">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="shutdownPeerRequest">
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
</wsdl:input>
<wsdl:output name="shutdownPeerResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/>
@@ -318,8 +329,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http
<wsdl:operation name="setDistributedCrawling">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="setDistributedCrawlingRequest">
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
</wsdl:input>
<wsdl:output name="setDistributedCrawlingResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/>
@@ -328,8 +339,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http
<wsdl:operation name="setTransferProperties">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="setTransferPropertiesRequest">
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
</wsdl:input>
<wsdl:output name="setTransferPropertiesResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/>
@@ -338,8 +349,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http
<wsdl:operation name="getTransferProperties">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getTransferPropertiesRequest">
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
</wsdl:input>
<wsdl:output name="getTransferPropertiesResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/>
@@ -348,8 +359,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http
<wsdl:operation name="setMessageForwarding">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="setMessageForwardingRequest">
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
</wsdl:input>
<wsdl:output name="setMessageForwardingResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/>
@@ -358,8 +369,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http
<wsdl:operation name="getMessageForwarding">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getMessageForwardingRequest">
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
</wsdl:input>
<wsdl:output name="getMessageForwardingResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/>
@@ -368,18 +379,28 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http
<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"/>
+ <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="getPeerProfile">
+ <wsdlsoap:operation soapAction=""/>
+ <wsdl:input name="getPeerProfileRequest">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
+ </wsdl:input>
+ <wsdl:output name="getPeerProfileResponse">
+ <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"/>
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://soap.anomic.de" use="encoded"/>
</wsdl:input>
<wsdl:output name="createNewXMLDocumentResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/admin" use="encoded"/>
@@ -388,8 +409,8 @@ Built on Apr 22, 2006 (06:55:48 PDT)--><wsdl:types><schema targetNamespace="http
</wsdl:binding>
<wsdl:service name="AdminServiceService">
<wsdl:port binding="impl:adminSoapBinding" name="admin">
- <wsdlsoap:address location="http://yacy:8080/soap/admin"/>
+ <wsdlsoap:address location="http://yacy:8080/soap/admin"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
\ No newline at end of file
diff --git a/test/de/anomic/soap/services/AdminServiceTest.java b/test/de/anomic/soap/services/AdminServiceTest.java
index e98e58d76..10eb7861b 100644
--- a/test/de/anomic/soap/services/AdminServiceTest.java
+++ b/test/de/anomic/soap/services/AdminServiceTest.java
@@ -67,4 +67,9 @@ public class AdminServiceTest extends AbstractServiceTest {
Document xml = ((AdminService)service).getServerLog(0);
System.out.println(XMLUtils.DocumentToString(xml));
}
+
+ public void testGetPeerProfile() throws RemoteException {
+ Document xml = ((AdminService)service).getPeerProfile("localhash");
+ System.out.println(XMLUtils.DocumentToString(xml));
+ }
}
diff --git a/test/de/anomic/soap/services/ServiceTests.java b/test/de/anomic/soap/services/ServiceTests.java
index 05a1f752a..fe51621aa 100644
--- a/test/de/anomic/soap/services/ServiceTests.java
+++ b/test/de/anomic/soap/services/ServiceTests.java
@@ -13,6 +13,7 @@ public class ServiceTests {
suite.addTestSuite(StatusServiceTest.class);
suite.addTestSuite(BlacklistServiceTest.class);
suite.addTestSuite(BookmarkServiceTest.class);
+ suite.addTestSuite(MessageServiceTest.class);
//$JUnit-END$
return suite;
}