[MOBY-dev] Getting out from XML.... Bug in MobyContentInstance ?
Andreas Groscurth
groscurt at mpiz-koeln.mpg.de
Tue Jul 3 12:51:33 UTC 2007
Hi all,
I call a service with Pauls 'client'
MobyRequest request = new MobyRequest(central);
request.setService(service);
request.setInput(new MobyDataObject("Global_Keyword", keyword));
MobyContentInstance instance = request.invokeService();
in the docu it says via MobyContentInstance I can retrieve my data... but it
doesnt.
printling the object via println i get the following xml
<moby:mobyContent moby:authority="mips.gsf.de">
<moby:serviceNotes><moby:Notes>This service retrieves all AGI_Locus Codes
related to a given keyword via BioRS from MAtDB (MIPS Arabidopsis thaliana
database)</moby:Notes></moby:serviceNotes>
<moby:mobyData queryID="1">
<moby:Collection xmlns:moby="http://www.biomoby.org/moby"
moby:articleName="result_codes">
<Simple><Object articleName="" namespace="AGI_LocusCode" id="At2g42410"/>
</Simple>
<Simple><Object articleName="" namespace="AGI_LocusCode" id="At3g23130"/>
</Simple>
<Simple><Object articleName="" namespace="AGI_LocusCode" id="At4g17810"/>
</Simple>
</moby:Collection>
</moby:mobyData> </moby:mobyContent>
I debugged the MobyContentInstance and apparently in the line
NodeList collections = MobyPrefixResolver.getChildElements(dataGroupTag,
"Collection");
and after, it should parse the collection - put it doesnt.... the result is
--
Andreas Groscurth
Diplom Bioinformatik - PhD Student
Max Planck Institute for Plant Breeding Research
Carl-von-Linné-Weg 10
50829 Cologne
Germany
E-mail: groscurt at mpiz-koeln.mpg.de
Phone: +49(0)221-5062-447
More information about the MOBY-dev
mailing list