[MOBY-dev] xml dump of MOBY objects
    Martin Senger 
    senger at ebi.ac.uk
       
    Thu May 13 19:38:32 UTC 2004
    
    
  
> Is there a tool, already written, that would dump  out the MOBY objects 
> in their XML format?
>
   Well, almost everything you get back from both Moby Central (registry)
and from Moby-native services are XML-based objects. So, for example, if
you want to get all service instances, you can use a Java client (but the
same is available in Perl) like this:
1) create a file (e.g. tmp/moby.txt) with this contents:
<findService><inputObjects>
<Input>
</Input>
</inputObjects>
<outputObjects>
<Output>
</Output>
</outputObjects>
<serviceType></serviceType>
<Category>moby</Category>
<authURI></authURI>
<expandObjects>1</expandObjects>
<expandServices>1</expandServices>
<authoritative>0</authoritative>
<keywords>
</keywords>
</findService>
2) call Java command-line client:
./run-cmdline-client -call findService tmp/moby.xml
And you get all service instances in XML.
   Was this what you were asking for?
   Regards,
   Martin
-- 
Martin Senger
EMBL Outstation - Hinxton                Senger at EBI.ac.uk     
European Bioinformatics Institute        Phone: (+44) 1223 494636      
Wellcome Trust Genome Campus             (Switchboard:     494444)
Hinxton                                  Fax  : (+44) 1223 494468
Cambridge CB10 1SD
United Kingdom                           http://industry.ebi.ac.uk/~senger
    
    
More information about the MOBY-dev
mailing list