I’m trying to create a simple test script to hit Amazon’s web services
via
their WSDL listing (specifically the Wishlist Lookup). I’m going on the
examples in the Pickaxe.
I’m not a WSDL expert, so I’m confused as to whether the problem is on
my
end, or on the Amazon end. Anyone better-versed than I willing to take
a
look?
However, when I run it, I’m getting a ton of error messages to the
0x84f7898>
(NoMethodError)
I’m not a WSDL expert, so I’m confused as to whether the problem is
on my
end, or on the Amazon end. Anyone better-versed than I willing to
take a
look?
makes this type of thing so easy. I used it to pull album art:
I’d checked that out, but I’m trying to make this as dependent on the
Ruby
base as possible, so people don’t have to install extra modules. The
ruby-amazon is my fallback, but I’d like to get it working with the pure
standard soap module.
Please call a method ‘create_rpc_driver’ instead of ‘createDriver’.
‘createDriver’ should work but it is deprecated method.
result = soap.ListLookup
I tried above (with createDriver → create_rpc_driver modification)
under ruby-1.8.4 and got different result;
/usr/local/lib/ruby/1.8/soap/rpc/driver.rb:230:in listLookup': wrong number of arguments (0 for 1) (ArgumentError) from /usr/local/lib/ruby/1.8/soap/wsdlDriver.rb:117:in ListLookup’
from list.rb:10
I think the method ‘ListLookup’ requires a parameter which is defined as
‘ListLookupRequest’ in the WSDL.
soap.listLookup(:ListLookup => “123”)
returns something for me.
Regards,
// NaHi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)