[MOBY-l] sample code of Central.call method

Yasumasa Shigemoto yshigemo at genes.nig.ac.jp
Mon Nov 10 00:16:20 UTC 2003


Dear Martin,

> > Can I invoke RetrieveGOFromKeywords method by Central.call method?
> >
>    You can - if you know what input XML format looks like.
I read the API document at http://biomoby.org/twiki/bin/view/TWiki/BioMOBYAPI.
And I try to access using 'central.call("GenbankAccSequenceRetrieve", inputXML))'.
(inputXML is String and the value is printed below.)
But I get an Error.

METHOD CALL: GenbankAccSequenceRetrieve
------------
<?xml version="1.0" encoding="UTF-8"?>
<moby:MOBY xmlns:moby="http://www.biomoby.org/moby">
    <moby:Query>
        <moby:queryInput>
             <Simple articleName=''>
                <Object namespace="urn:lsdi:biomoby.org:namespacetype:ncbi_acc"
id="AB000001"/>
             </Simple>
        </moby:queryInput>
    </moby:Query>
</moby:MOBY>


------------

Exception in thread "main" org.biomoby.shared.MobyException: ===ERROR===
Fault details:
[stackTrace: null]
Fault string: Failed to locate method (GenbankAccSequenceRetrieve) in class (MOB
Y::Central) at /usr/local/lib/perl5/site_perl/5.8.0/SOAP/Lite.pm line 2195.

Fault code:   {http://schemas.xmlsoap.org/soap/envelope/}Client
Fault actor:  null
When calling:
        http://mobycentral.cbr.nrc.ca/cgi-bin/MOBY05/mobycentral.pl
===========

        at org.biomoby.client.CentralImpl.doCall(Unknown Source)
        at org.biomoby.client.CentralImpl.call(Unknown Source)
        at Q.main(Q.java:43)


Is the inputXML wrong?

Regards,
Yasumasa Shigemoto

Martin Senger wrote:
> 
> > Can I invoke RetrieveGOFromKeywords method by Central.call method?
> >
>    You can - if you know what input XML format looks like.
> 
> > Or are there any way to invoke one?
> >
>    There is no Java API for invoking moby services yet. I will provide it,
> however, soon. Menatime you may be inspired by the CentralImpl code to see
> how web services generally can be invoked, and do the same in your code.
> But as with the previous paragraph, you need to know what XML input the
> invoked service expects.
> 
> > How do I specify 'xsd1:NOT_YET_DEFINED_INPUTS' including the WSDL?
> >
>    Again: you need to know how the inut XML look like. Generally, it looks
> like described in the Mobi API documentation, but it may be richer for a
> particular service.
> 
>    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-l mailing list