[MOBY-dev] Problems with a new registered service

Anika Joecker joecker at mpiz-koeln.mpg.de
Fri Sep 28 09:03:11 UTC 2007


Hi all,

I just registered a new service at the test registry, which outputs a 
collection of the new datatype "Annotated_GO_Term" (child of GO_Term).
Calling the service returns an empty list, although I can print out the 
results for this input in the jboss log.
We are not sure, if this is a problem of my implementation or if there is a 
problem in the BioMOBY API with the new datatype.

Here I send you an abstract of my code:

// store goterm from hash in GOTerm output objects
			Annotated_GO_Term[] gos = new Annotated_GO_Term[results.size()];

			Iterator it2 = results.iterator();
			int counter = 0;
			
			while (it2.hasNext()) {
				GOTerm go = (GOTerm) it2.next();
				Annotated_GO_Term goresult = new Annotated_GO_Term();
				goresult.set_Definition(new MobyString(go.getGo_term_name()));
				goresult.set_Term(new MobyString(go.getGo_term()));
				goresult.set_detailed_description(new MobyString(go.getDescription()));
				goresult.set_evidence_code(new MobyString(go.getConf()));
				goresult.set_process(new MobyString(go.getProcess()));
				gos[counter] = goresult;
				counter++;
			}
			conn.close();
			System.out.println("1.GO Term" + gos[0].get_Term());
			
			super.set_go_termSet(request, gos);

We tried to set the attributes of Annotated_GO_Term with Moby String or just 
as String, but neither worked.

Any idea how to solve this problem?

Thanks in advance!

Best,
Anika 


-- 
/--------------------------------------------------
  Dipl. Inf. Anika Joecker
  PHD student
  Plant Computational Biology group
  Max-Planck Institute for plant breeding research
  Carl-von-Linne Weg 10
  50829 Cologne
  Germany
  +49(0) 221 5062449
---------------------------------------------------/



More information about the MOBY-dev mailing list