Open GoogleCodeExporter opened 9 years ago
xml requests from soapUI
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://wcf.isolutions.it/ISBets.API.Common/1.0/"
xmlns:isb="http://schemas.datacontract.org/2004/07/ISBets.API.Messages.Requests"
>
<soapenv:Header/>
<soapenv:Body>
<ns:GetLanguagesList>
<!--Optional:-->
<ns:objRequest>
<isb:_APIAccount>account</isb:_APIAccount>
<isb:_APIPassword>pass</isb:_APIPassword>
<isb:_IDBookmaker>1</isb:_IDBookmaker>
</ns:objRequest>
</ns:GetLanguagesList>
</soapenv:Body>
</soapenv:Envelope>
this code:
for service in client.services.values():
for port in service['ports'].values():
print port['location']
for op in port['operations'].values():
print 'Name:', op['name']
print 'Docs:', op['documentation'].strip()
print 'SOAPAction:', op['action']
print 'Input', op['input'] # args type declaration
print
shows that:
Name: GetLanguagesList
Docs: None
SOAPAction:
http://wcf.isolutions.it/ISBets.API.Common/1.0/ICommon/GetLanguagesList
Input {'GetLanguagesList': {u'objRequest': {u'_APIAccount': <type 'str'>,
u'_APIPassword': <type 'str'>, u'_IDBookmaker': <alias 'short' for '<type
'int'>'>, u'_LanguageID': {}, u'_DateExchangeRates': <type
'datetime.datetime'>}}}
_LanguageID': {} - is an empty dict. Maybe there is a problem, why I'm getting
"None"
Original comment by kurvy...@gmail.com
on 4 Nov 2014 at 2:24
sorry for the mess, i have fixed the bug:
there was a problem with the type called "unsignedByte"
from documentation it's a number from 0 to 255
http://books.xmlschemata.org/relaxng/ch19-77327.html
so i added two lines to helpers.py
unsignedByte = Alias(int, 'integer')
and in TYPE_MAP = {
...
unsignedByte: 'unsignedByte',}
Original comment by Chy...@gmail.com
on 6 Nov 2014 at 8:02
Original issue reported on code.google.com by
kurvy...@gmail.com
on 4 Nov 2014 at 2:10