【发布时间】:2018-07-19 10:51:50
【问题描述】:
如何在我的回复中省略 tns 并更改标签名称。? 我的回复是这样的
<soap11env:Envelope xmlns:soap11env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="spyne.example">
<soap11env:Body>
<tns:FnSchedule_CityResponse>
<tns:FnSchedule_CityResult>
<tns:ErrorString></tns:ErrorString>
<tns:CityName>HYDERABAD</tns:CityName>
<tns:CityId>1</tns:CityId>
<tns:ErrId>0</tns:ErrId>
</tns:FnSchedule_CityResult>
</tns:FnSchedule_CityResponse>
</soap11env:Body>
</soap11env:Envelope>
我想删除 tns 并将“soap11env”更改为“soap”。 拥有这些值会导致验证问题。
我在堆栈溢出时提到了这个问题,实现了它,但没有帮助。 Remove the namespace from Spyne response variables
【问题讨论】:
标签: python python-2.7 spyne