[MOBY-guts] biomoby commit

Martin Senger senger at pub.open-bio.org
Sun Nov 6 16:23:49 UTC 2005


senger
Sun Nov  6 11:23:49 EST 2005
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client
In directory pub.open-bio.org:/tmp/cvs-serv13600/src/main/org/biomoby/client

Modified Files:
	CentralImpl.java 
Log Message:


moby-live/Java/src/main/org/biomoby/client CentralImpl.java,1.30,1.31
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/CentralImpl.java,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/CentralImpl.java	2005/10/27 04:15:23	1.30
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/CentralImpl.java	2005/11/06 16:23:49	1.31
@@ -1316,28 +1316,50 @@
     /*************************************************************************
      *
      *************************************************************************/
+    public String getRegisterServiceXML (MobyService service) {
+	return
+	    "<registerService>" +
+	    "<Category>" + service.getCategory() + "</Category>" +
+	    "<serviceName>" + service.getName() + "</serviceName>" +
+	    "<serviceType>" + service.getType() + "</serviceType>" +
+	    "<authURI>" + service.getAuthority() + "</authURI>" +
+	    "<signatureURL>" + service.getSignatureURL() + "</signatureURL>" +
+	    "<URL>" + service.getURL() + "</URL>" +
+	    "<contactEmail>" + service.getEmailContact() + "</contactEmail>" +
+	    "<authoritativeService>" + (service.isAuthoritative() ? "1" : "0") + "</authoritativeService>" +
+	    "<Description><![CDATA[" + service.getDescription() + "]]>" +
+	    "</Description>" +
+	    buildPrimaryInputTag (service) + 
+	    buildSecondaryInputTag (service) + 
+	    buildOutputTag (service) + 
+	    "</registerService>";
+    }
+
+    /*************************************************************************
+     *
+     *************************************************************************/
     public void registerService (MobyService service)
 	throws MobyException, NoSuccessException, PendingCurationException {
 
 	String result =
 	    (String)doCall ("registerService",
-			    new Object[] {
-				"<registerService>" +
-				  "<Category>" + service.getCategory() + "</Category>" +
-				  "<serviceName>" + service.getName() + "</serviceName>" +
-				  "<serviceType>" + service.getType() + "</serviceType>" +
-				  "<authURI>" + service.getAuthority() + "</authURI>" +
-				  "<signatureURL>" + service.getSignatureURL() + "</signatureURL>" +
-				  "<URL>" + service.getURL() + "</URL>" +
-				  "<contactEmail>" + service.getEmailContact() + "</contactEmail>" +
-				  "<authoritativeService>" + (service.isAuthoritative() ? "1" : "0") + "</authoritativeService>" +
-				  "<Description><![CDATA[" + service.getDescription() + "]]>" +
-				  "</Description>" +
-				  buildPrimaryInputTag (service) + 
-				  buildSecondaryInputTag (service) + 
-				  buildOutputTag (service) + 
-				"</registerService>"
-			    });
+			    new Object[] { getRegisterServiceXML (service) });
+// 				"<registerService>" +
+// 				  "<Category>" + service.getCategory() + "</Category>" +
+// 				  "<serviceName>" + service.getName() + "</serviceName>" +
+// 				  "<serviceType>" + service.getType() + "</serviceType>" +
+// 				  "<authURI>" + service.getAuthority() + "</authURI>" +
+// 				  "<signatureURL>" + service.getSignatureURL() + "</signatureURL>" +
+// 				  "<URL>" + service.getURL() + "</URL>" +
+// 				  "<contactEmail>" + service.getEmailContact() + "</contactEmail>" +
+// 				  "<authoritativeService>" + (service.isAuthoritative() ? "1" : "0") + "</authoritativeService>" +
+// 				  "<Description><![CDATA[" + service.getDescription() + "]]>" +
+// 				  "</Description>" +
+// 				  buildPrimaryInputTag (service) + 
+// 				  buildSecondaryInputTag (service) + 
+// 				  buildOutputTag (service) + 
+// 				"</registerService>"
+// 			    });
 	String[] registered = checkRegistration (result, service);
 	service.setId (registered [0]);
 	service.setRDF (registered [1]);




More information about the MOBY-guts mailing list