Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
spyne.const有以下
spyne.const
REQUEST_SUFFIX = '' """The suffix for function response objects.""" RESPONSE_SUFFIX = 'Response' """The suffix for function response objects."""
如何配置自己的后缀?我希望我的所有方法的请求名称<method>RQ和响应都是<method>RS
<method>RQ
<method>RS
从理论上讲,这应该在实例化你之前Application就可以工作,但为了安全起见,在从 spyne 命名空间第一次导入之前,你应该这样做:
Application
import spyne.const spyne.const.REQUEST_SUFFIX ='RQ' spyne.const.RESPONSE_SUFFIX ='RS'