[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Access to SOAP function denied.



On Sun, 27 May 2007, Gustavo R. Montesino wrote:
> Em Dom, 2007-05-27 às 13:36 -0700, Don Armstrong escreveu:
> > On Sun, 27 May 2007, Gustavo R. Montesino wrote:
> > > I'm getting the following error message while trying to run the SOAP
> > > proof-of-concept script on #377520:
> > > 
> > > <Fault soap:Client: Denied access to method (get_bugs) in class (Debbugs::SOAP) at /usr/share/perl5/SOAP/Lite.pm line 2509.>
> > > 
> > > Is it some known and/or temporary problem, or should I file a bug report?
> > 
> > Which snippet are you using?
> > 
> > Odds are you're either using bugs.donarmstrong.com, which has changed
> > to be Debbugs/SOAP/get_bugs, or you're using bugs.debian.org which is
> > still Debbugs/SOAP/Status/get_bugs or similar.
> >  
> > In either case, giving me the code that you're using (since there are
> > 3 separate snippets in that bug report) would help.
> 
> I've tried the last one, from Margarita:

Ah; I checked b.d.c again, and it's currently using the old version of
soap.cgi; the code below will work once I've finished with the new
SOAP module, but in the meantime, you'll have to do something like
this:
 
#!/usr/bin/python

import SOAPpy

url = 'http://bugs.donarmstrong.com/cgi-bin/soap.cgi'
ns = 'Debbugs/SOAP/Status'
server = SOAPpy.SOAPProxy(url, ns)

# Uncomment those to enable debugging
# server.config.dumpSOAPOut = 1
# server.config.dumpSOAPIn = 1

server.soapaction = '%s#get_status' % ns
result = server.get_status(404404)
print result


The bug ones won't work until I get the new version up, which will be
a bit.


Don Armstrong

-- 
Debian's not really about the users or the software at all. It's a
large flame-generating engine that the cabal uses to heat their coffee
 -- Andrew Suffield (#debian-devel Fri, 14 Feb 2003 14:34 -0500)

http://www.donarmstrong.com              http://rzlab.ucr.edu



Reply to: