Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Re: Using Amazon's WSDL services
NAKAMURA, Hiroshi
2/4/2006 9:35:00 AM
-----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...
>
> 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-----
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Using Amazon's WSDL services
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password