[MOBY-dev] Problems with parsing a service result
groscurt at mpiz-koeln.mpg.de
groscurt at mpiz-koeln.mpg.de
Wed Oct 17 11:02:05 UTC 2007
Hi all,
i want to retrieve the results for the service:
get_agi_code_by_keyword/mpiz-koeln.mpg.de
it returns a collection of Descriptors for a given keyword.
Using the dashboard i retrieve a result (e.g. with keyword superman)
<?xml version="1.0" encoding="UTF-8"?>
<moby:MOBY xmlns:moby="http://www.biomoby.org/moby">
<moby:mobyContent>
<moby:mobyData moby:queryID="sip_1_">
<moby:Collection moby:articleName="agi_locus_code">
<moby:Simple>
<moby:Descriptor moby:id="AT3G23130"
moby:namespace="AGI_LocusCode">
<moby:String moby:id="" moby:namespace=""
moby:articleName="description">SUP (SUPERMAN); DNA binding / nucleic acid
binding / transcription factor/ zinc ion binding</moby:String>
</moby:Descriptor>
</moby:Simple>
</moby:Collection>
</moby:mobyData>
</moby:mobyContent>
</moby:MOBY>
using the simple java client
MobyService agiService = new MobyService();
agiService.setCategory( "" );
agiService.setAuthority( "mpiz-koeln.mpg.de" );
agiService.setName( "get_agi_code_by_keyword" );
agiService = central.findService( agiService )[0];
MobyRequest request = new MobyRequest( central );
request.setService( agiService );
request.setInput( new MobyDataObject( "Global_Keyword", "superman" ) );
MobyContentInstance contentInstance = request.invokeService();
MobyDataJob mobyJob =
contentInstance.get( contentInstance.keySet().iterator().next() );
MobyDataInstance[] dataInstances = mobyJob.getPrimaryData();
the dataInstance contains nothing :-(:-( (dataInstances.length = 0)
the simple java client works for other services, but fails for this one...
does anybody know what is wrong ?
thanks
andreas
More information about the MOBY-dev
mailing list