Vote count:
0
In SUDS when i call a method on the server and receive it's response, i access the return values/attributes using . notation (attribute access). Is there a way for me to have the response stored in a python object - after all the WSDL/SUDS has an idea of the structure of the server-data-type.
eg: SOAP Type: ClientInfo
(reply){
Transaction =
(Transaction){
Reference1 = "1"
Reference2 = "2"
Reference3 = "3"
Reference4 = "4"
Reference5 = "5"
}
Notifications = ""
HasErrors = False
Countries =
(ArrayOfCountry){
Country[] =
(Country){
Code = "AD"
Name = "Andorra"
IsoCode = "020"
StateRequired = False
PostCodeRequired = False
PostCodeRegex = None
InternationalCallingNumber = "376"
},
Can i dump this into a python data-type/object by using the wsdl info?
asked 45 secs ago
SUDS, Python: how do you convert a return object to python data-type
Aucun commentaire:
Enregistrer un commentaire