[BioPython] connecting to biomoby
Catherine Letondal
letondal at pasteur.fr
Wed Nov 12 08:18:54 EST 2003
Cary Miller wrote:
> Hi all,
> I am attempting to contact biomoby with xmlrpclib and SOAPpy.
BTW, has someone started to develop a biomoby python client?
> It's not
> totally clear where the server lives so I have tried 3 urls.
> http://mobycentral.cbr.nrc.ca/MOBY/Central
> http://mobycentral.cbr.nrc.ca/cgi-bin/MOBY05/mobycentral.pl
> http://192.168.1.9/cgi-bin/MOBY-Central.pl
> Each of these seems to connect with my client but then fails when the
> request is sent. Do I have the wrong url, wrong function call or what?
>
> >>> import xmlrpclib
> >>> url = "http://mobycentral.cbr.nrc.ca/MOBY/Central"
> >>> server = xmlrpclib.ServerProxy(url)
> >>> foo = server.retrieveServiceNames()
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/local/lib/python2.3/xmlrpclib.py", line 1029, in __call__
> return self.__send(self.__name, args)
> File "/usr/local/lib/python2.3/xmlrpclib.py", line 1316, in __request
> verbose=self.__verbose
> File "/usr/local/lib/python2.3/xmlrpclib.py", line 1070, in request
> headers
> xmlrpclib.ProtocolError: <ProtocolError for
> mobycentral.cbr.nrc.ca/MOBY/Central: 404 Not Found>
>
>
> >>> from SOAPpy import SOAPProxy
> >>> url = "http://mobycentral.cbr.nrc.ca/cgi-bin/MOBY05/mobycentral.pl"
> >>> server = SOAPProxy(url)
> >>> foo = server.retrieveServiceNames()
> <Fault SOAP-ENV:Client: Denied access to method (retrieveServiceNames) in
> class
> (main) at /usr/local/lib/perl5/site_perl/5.8.0/SOAP/Lite.pm line 2128.
> >
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/local/lib/python2.3/site-packages/SOAPpy/Client.py", line
> 363, in __call__
> return self.__r_call(*args, **kw)
> File "/usr/local/lib/python2.3/site-packages/SOAPpy/Client.py", line
> 385, in __r_call
> self.__hd, self.__ma)
> File "/usr/local/lib/python2.3/site-packages/SOAPpy/Client.py", line
> 307, in __call
> raise p
> SOAPpy.Types.faultType: <Fault SOAP-ENV:Client: Denied access to method
> (retrieveServiceNames) in class (main) at
> /usr/local/lib/perl5/site_perl/5.8.0/SOAP/Lite.pm line 2128.
> >
> >>>
>
> ??????????
> Thanks,
> cam
>
> --
> //=\ Cary Miller //=\
> \=// Center for Computational Pharmacology \=//
> //=\ University of Colorado Health Sciences Center //=\
> \=// http://compbio.uchsc.edu/Hunter_lab/Miller \=//
> //=\ (303) 315-1584 //=\
>
>
> _______________________________________________
> BioPython mailing list - BioPython at biopython.org
> http://biopython.org/mailman/listinfo/biopython
--
Catherine Letondal -- Pasteur Institute Computing Center
More information about the BioPython
mailing list