On Wednesday 05 May 2010, Jeff Ortel elucidated thus:
> I am making this call:
>
> client.deleteReports([5283740314, 528350731])
<SNIP>
Actually, the problem is the way you are calling this.
No surprise there.
The param
reportIDs is an ArrayOfLong which is defined as containing unbounded
elements named 'long'. So, in object terms this is:
reportIDs = { 'long':[1,2,3] }
or
reportIDs = client.factory.create('ArrayOfLong')
reportIDs.long = [3,4,5]
WHY!? Why didn't they just make the type xs:long[]? Why did they define
their own complex type for a type that is already a basic type?
> Something I've noticed about Yahoo is that they seem to like
named
> parameters. Example: their docs will say that a call, say,
> getReportList, returns:
>
> ReportInfo[] - A list of all requested reports that you have access
> to in the master account.
Yeah, there names are misleading.
Their API seems to have a few nasty warts. Ah well, Suds makes it
easier to deal with. :)
j
--
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key:
http://pgp.mit.edu/ ID 0x73B13B6A