[MOBY-guts] biomoby commit

Paul Gordon gordonp at pub.open-bio.org
Wed Apr 21 17:22:26 UTC 2004


gordonp
Wed Apr 21 13:22:26 EDT 2004
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client
In directory pub.open-bio.org:/tmp/cvs-serv14268/client

Modified Files:
	CentralImpl.java 
Log Message:
Fixed bug (extra input def closing tags) in service search template building

moby-live/Java/src/main/org/biomoby/client CentralImpl.java,1.11,1.12
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/CentralImpl.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/CentralImpl.java	2004/04/02 16:40:23	1.11
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/CentralImpl.java	2004/04/21 17:22:26	1.12
@@ -19,9 +19,6 @@
 import java.io.*;
 import java.net.*;
 
-//import org.apache.xerces.parsers.*;
-
-
 /**
  * A default implementation of the
  * interface {@link org.biomoby.shared.Central Central}
@@ -337,7 +334,6 @@
 	buf.append ("<inputObjects>\n<Input>\n");
 	MobyData[] pi = service.getPrimaryInputs();
 	if (pi.length > 0) {
-	    buf.append ("<inputObjects>\n<Input>\n");
 	    for (int i = 0; i < pi.length; i++)
 		buf.append (pi[i].toXML());
 	}
@@ -1173,10 +1169,8 @@
 	    result = doCall (methodName, new Object[] { });
 	else 
 	    result = doCall (methodName, new Object[] { inputXML });
-
-	if (result == null)
-	    throw new MobyException ("Returned result is null.");
-
+ 	if (result == null)
+ 	    throw new MobyException ("Returned result is null.");
 	if (result instanceof String)
 	    return (String)result;
 	if (result instanceof String[]) {




More information about the MOBY-guts mailing list