[MOBY-guts] biomoby commit

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


gordonp
Wed Apr 21 13:56:49 EDT 2004
Update of /home/repository/moby/moby-live/Java/docs
In directory pub.open-bio.org:/tmp/cvs-serv14601

Modified Files:
	ChangeLog 
Log Message:
Included service invocation implementation info

moby-live/Java/docs ChangeLog,1.11,1.12
===================================================================
RCS file: /home/repository/moby/moby-live/Java/docs/ChangeLog,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- /home/repository/moby/moby-live/Java/docs/ChangeLog	2004/04/02 16:40:23	1.11
+++ /home/repository/moby/moby-live/Java/docs/ChangeLog	2004/04/21 17:56:49	1.12
@@ -1,3 +1,31 @@
+2004-04-21  Paul Gordon <gordonp at cbr.nrc.ca>
+
+        * Implemented Moby data instance classes for simples, collections, 
+        secondary inputs in org.biomoby.shared.*;
+        
+        * Implemented namespace resolver for retrieval of MOBY attributes in DOM fragments,
+        default namespace mapping for XPath, etc.
+
+        * Implemented org.biomoby.client.MobyRequest, which handles the SOAP transactions
+        for service invocation.  Takes in Moby data objects, outputs Moby data objects
+        e.g. 
+        // Assumes you already have a service (mobyService) and data (mobyInputData) around
+        mobyRequest = new MobyRequest(new CentralImpl());
+	mobyRequest.setDebugMode(true);
+	mobyRequest.setService(mobyService);
+	mobyRequest.setInput((MobyDataInstance[]) mobyInputData);
+       	try{
+	    mobyRequest.invokeService();
+	} catch(MobyException mobye){
+	    System.err.println("Failure in MOBY protocol: " + mobye);
+	} catch(SOAPException soape){
+	    System.err.println("Failure in SOAP transaction: " + soape);
+	} catch(NOsUccessException nse){
+	    System.err.println("Failure in MOBY logic (input was not acceptable " +
+	                       "for this service)" + nse);
+	}
+
+
 2004-04-02  Paul Gordon <gordonp at cbr.nrc.ca>
 
         * Changed XML parsing to JAXP based interface that works on more platforms




More information about the MOBY-guts mailing list