|
From: Rob J. <ro...@un...> - 2001-07-19 19:50:34
|
In SOAPpy 0.9.7, SOAP.SOAPBuilder.dumpList has
try:
typename = last._typename
except:
typename = "SOAPStruct"
The variable "last" doesn't exist. The except clause catches the resulting
exception and forces the typename of the array to always be "SOAPStruct".
Changing it to:
try:
typename = sample._typename
except:
typename = "SOAPStruct"
fixes it.
I noticed this because your bid sample was producing, in the Buy request,
<items SOAP-ENC:arrayType="ns1:SOAPStruct[2]" xsi:type="SOAP-ENC:Array">
instead of the correct
<items SOAP-ENC:arrayType="ns1:LineItem[2]" xsi:type="SOAP-ENC:Array">
I have also filed this as a bug on the sourceforge pywebsvcs site.
What's the upcoming timetable for SOAPpy? It's pretty wonderful already,
actually :-)
Cheers,
Rob
|