On 01/24/12 20:06, azurIt wrote:
the last working version is 2.4.7, all other are raising that strange SAX
error. here is complete traceback (from 2.5.0):
Traceback (most recent call last):
File
"/usr/lib/python2.5/site-packages/rpclib-2.5.0_beta-py2.5.egg/rpclib/application.py",
line 102, in process_request
ctx.service_class.event_manager.fire_event('method_call', ctx)
File
"/usr/lib/python2.5/site-packages/rpclib-2.5.0_beta-py2.5.egg/rpclib/_base.py",
line 308, in fire_event
handler(ctx)
File "<censored>", line 3309, in run_before
perm = lib._check_token(ctx.in_object[0], ctx.descriptor.udp["perms"])
File "<censored>", line 188, in _check_token
return directorlib.call.check_token(token, perms, config.backend_name)
File "<censored>", line 88, in __call__
result = caller(*args2)
File "build/bdist.linux-x86_64/egg/suds/client.py", line 542, in __call__
return client.invoke(args, kwargs)
File "build/bdist.linux-x86_64/egg/suds/client.py", line 602, in invoke
result = self.send(soapenv)
File "build/bdist.linux-x86_64/egg/suds/client.py", line 643, in send
result = self.succeeded(binding, reply.message)
File "build/bdist.linux-x86_64/egg/suds/client.py", line 678, in succeeded
reply, result = binding.get_reply(self.method, reply)
File "build/bdist.linux-x86_64/egg/suds/bindings/binding.py", line 145, in
get_reply
replyroot = sax.parse(string=reply)
File "build/bdist.linux-x86_64/egg/suds/sax/parser.py", line 136, in parse
sax.parse(source)
File "/usr/lib/python2.5/site-packages/_xmlplus/sax/expatreader.py", line
109, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.5/site-packages/_xmlplus/sax/xmlreader.py", line 123,
in parse
self.feed(buffer)
File "/usr/lib/python2.5/site-packages/_xmlplus/sax/expatreader.py", line
220, in feed
self._err_handler.fatalError(exc)
File "/usr/lib/python2.5/site-packages/_xmlplus/sax/handler.py", line 38, in
fatalError
raise exception
SAXParseException:<unknown>:1:30: unknown encoding
Error is raising from function, which is doing checking of permissions on
remote server (via SOAP call). It is sending 'and' and 'or' xml elements, maybe
this is the problem (the element names). But it was working fine until 2.5.0.
all right, this is a suds backtrace. you're making a suds request from a
rpclib event, which tanks in a place completely irrelevant with rpclib.
you should either provide me information from the other side of the
communication, or the xml traffic itself.
______________________________________________________________
Od: "Burak Arslan"<[email protected]>
Komu: azurIt<[email protected]>
Dátum: 24.01.2012 18:56
Predmet: Re: [Soap-Python] rpclib regressions
CC: [email protected]
On 01/24/12 19:43, azurIt wrote:
Hi,
i just tried to upgrade to 2.5.2 (from 2.4.5) and i come accross HUGE problems.
first of all, there is no 'soft' validation in protocol/xml/_base.py so this:
in_protocol=Soap11(validator='soft')
was raising ValueError. I fixed it in code and strange things started to
happend then:
SAXParseException:<unknown>:1:30: unknown encoding
i wasn't able to fix this and downgraded back to 2.4.5 :(
hi azur.
i fixed the ValueError with validator='soft' in my personal fork. but i
don't understand what throws the encoding error. can you provide some
code that exhibits the problem?
thanks
burak
_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap
_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap