spyne

Spyne/Python/Soap. Add xsi:type to AnyDict

Spyne/Python/Soap. Add xsi:type to AnyDict Question: Im using Spyne & I try to add xsi_type="xsd:string" to my AnyDict result in response . Now i have this one: <soap11env:Envelope __out_header__ = EntryObject @rpc( AnyDict, _out_message_name = ‘ERespons’, _out_variable_name = ‘EResponsRecord’, _returns=AnyDict ) def AddEntry(ctx, data): data = get_object_as_dict(data) try : ctx.app.db_tool.set_args(data) res = ctx.app.db_tool.insert_data() return res …

Total answers: 2

how to omit tns from response and change tag name in spyne?

how to omit tns from response and change tag name in spyne? Question: how do omit tns from my response and also change the tag name.? my response is like this <soap11env:Envelope > <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> I want to remove tns and change “soap11env” to “soap”. Having …

Total answers: 2