[MOBY-dev] Problems with parsing a service result
Edward Kawas
edward.kawas at gmail.com
Wed Oct 17 13:19:05 UTC 2007
Hi Andreas,
Should
new MobyDataObject( "Global_Keyword", "superman" ) );
really be
new MobyDataObject( "Global_Keyword", "keyword" ) ); ??
Eddie
> -----Original Message-----
> From: moby-dev-bounces at lists.open-bio.org
> [mailto:moby-dev-bounces at lists.open-bio.org] On Behalf Of
> groscurt at mpiz-koeln.mpg.de
> Sent: Wednesday, October 17, 2007 4:02 AM
> To: moby-dev at lists.open-bio.org
> Subject: [MOBY-dev] Problems with parsing a service result
>
> 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
>
> _______________________________________________
> 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