Re: Access to SOAP function denied.
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:
---
#!/usr/bin/python
import SOAPpy
url = 'http://bugs.donarmstrong.com/cgi-bin/soap.cgi'
ns = 'Debbugs/SOAP'
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
server.soapaction = '%s#get_bugs' % ns
result = server.get_bugs("package","astyle")
print result
server.soapaction = '%s#get_bugs' % ns
result = server.get_bugs("src","linux-2.6", "severity", "grave")
print result
Reply to: