Closed xWo0d closed 7 years ago
You could try this:
client.service.TravelPrivilege({'Message': msg, 'MessageData': appdata})
It does not work. The main problem with Choice element({ServiceName: xsd:string} | {Service: ns0:ServiceType}), which has not qname parameter.
Hi,
First of all don't worry about your english :-)
It would be easier for me though if there is an example script as explained in the documentation (see http://docs.python-zeep.org/en/master/reporting_bugs.html).
I realise this will result in extra work on your side, but it would make it easier for me to look at it :-)
zeep 1.0
python 3.5.2
http://109.195.183.171:2121/socportal/smev/TravelPrivilege256.ashx?wsdl
Performing -mzeep i look this:
TravelPrivilege(Message: ns0:MessageType, MessageData: {AppData: {TravelPrivilege: , _attr_1: {}}}, _soapheaders={SmevHeader: ns0:HeaderType})
I have trouble with passing Message: From mzeep
ns0:MessageType(Sender: ns0:orgExternalType, Recipient: ns0:orgExternalType, Originator: ns0:orgExternalType, ({ServiceName: xsd:string} | {Service: ns0:ServiceType}), TypeCode: ns0:TypeCodeType, Status: ns0:StatusType, Date: xsd:dateTime, ExchangeType: xsd:string, RequestIdRef: ns0:idType, OriginRequestIdRef: ns0:idType, ServiceCode: xsd:string, CaseNumber: xsd:string, SubMessages: ns0:SubMessagesType, TestMsg: xsd:string, OKTMO: xsd:string)
({ServiceName: xsd:string} | {Service: ns0:ServiceType}) - choice element, which has not qname field.
So, i try to get response using this code:
That request return:
How do I transfer the choice item correctly? I tried different options.
P.S. Sorry for my english