#2 Server.py dows not allow to specify namespace of response

open
nobody
None
5
2006-06-15
2006-06-15
Anonymous
No

I failed to find a way to specify a namespace for the
SOAP response. Server.py just does not pass any custom
NS info to SOAPBuilder.

Proposed patch to Server.py:

418,419c418,420
< resp = buildSOAP(kw =
< {'%sResponse' % method:
{'Result': fr}},
---
> resp = buildSOAP(
> method='%sResponse' %
method,
> kw ={'Result': fr},
421c422,424
< config = self.server.config,)
---
> config = self.server.config,
> namespace =
self.server.namespace
> )

This allows to specify server's namespace and have
responses branded by it. Empty server namespace works
correctly, too.

The version patched is '$Id: Server.py,v 1.21
2005/02/15 16:32:22 warnes Exp $' (currently latest
stable).

(dmitry.cheryasov (thingie) gmail point com)

Discussion