Как получить тело запроса мыла с помощью spyne
@rpc(Request91Type,
_returns=AnyDict,
_out_variable_name="Response91")
def Request91(ctx, Request91Type):
try:
logging.info(
f'Initialized objects {str(Request91Type).encode("utf-8")}')
return {
"GUID": 'aaa',
"SendDateTime": "2022-04-11T19:50:11",
"Certificate": CertificateMinimumType.generate(),
"Status": "Выдан",
"StatusCode": "1601",
"Inspector": None
}
except Exception as e:
logging.info(f'Exception occurred: {str(e)}')
Я пытался получить доступ к Request91type.guid, но ничего не получилось:) Это мой пример мыльного запроса:https://pastebin.com/QyJWL2jJ А это для сложных моделей:https://pastebin.com/gdZGkmqN. Я также пытался print(ctx.in_string), но возвращается <генератор объекта WsgiApplication.__wsgi_input_to_iterable на 0x7faf41451e70>, как это сообщение