[MOBY-dev] Problems with a new registered service

Edward Kawas edward.kawas at gmail.com
Fri Sep 28 13:36:19 UTC 2007


Hi,

super.set_go_termSet(request, gos); 

should read

set_go_termSet(response, gos);

Hope that helps,

Eddie

> -----Original Message-----
> From: moby-dev-bounces at lists.open-bio.org 
> [mailto:moby-dev-bounces at lists.open-bio.org] On Behalf Of 
> Anika Joecker
> Sent: Friday, September 28, 2007 2:03 AM
> To: moby-dev at biomoby.org
> Subject: [MOBY-dev] Problems with a new registered service
> 
> 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
> ---------------------------------------------------/
> _______________________________________________
> MOBY-dev mailing list
> MOBY-dev at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/moby-dev




More information about the MOBY-dev mailing list