[MOBY-dev] get data from XML... or MobyContentInstance... bug ?
Andreas Groscurth
groscurt at mpiz-koeln.mpg.de
Tue Jul 3 12:55:58 UTC 2007
Hi all,
I call a service via Pauls 'Client'
MobyRequest request = new MobyRequest(central);
request.setService(service);
request.setInput(new MobyDataObject("Global_Keyword", keyword));
MobyContentInstance instance = request.invokeService();
using println on the MobyContentInstance I get the 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>
but using the Java Api methods for MobyConstentInstance - there is nothing....
The map, which should give me my data, looks the following:
{result_codes=Name: result_codes
Elements in collection:
}
So... as far as I can see - something failes while parsing ?!
Is this a bug or somewhere my fault ?
And anyway... is there another way to get data from the XML besides parsing it
by myself ?
Thanks
Andreas
--
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