From: "NAKAMURA, Hiroshi" Date: 2006-02-04T18:34:33+09:00 Subject: Re: Using Amazon's WSDL services -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Sorry for late reply. H. Wade Minter wrote: > 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. > > Here's my sample script: > > ##### > #!/usr/bin/env ruby > > require 'soap/wsdlDriver' > > wsdl = 'http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl' > > soap = SOAP::WSDLDriverFactory.new(wsdl).createDriver 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) iD8DBQFD5HT2f6b33ts2dPkRApM7AKCMNVJnGu+3ztX5pwKZOmWxa7mqsQCgo38M BOd+K0Z7pbMbQTIhYHZsWbw= =yntq -----END PGP SIGNATURE-----