Hi All ,
I have simple ruby client code to connect to yahoo server using XML-RPC.After i ran client code i am getting errors like below.
"`initialize': getaddrinfo: no address associated with hostname. (SocketError)"
Below is the my code:
----------------------------
require "xmlrpc/client"
# Make an object to represent the XML-RPC server.
server = XMLRPC::Client.new2( "http://api.flickr.com/services/xmlrpc/",proxy=nil, timeout=1000)
# Call the remote server and get our result
result = server.call('flickr.groups.search','dbe41f4f61d26f50a4f541d9b8bbf51b','api','5').inspect
if result
puts 'Hey, it worked!'
else
puts 'Back to the drawing board...'
end
----------------------------------------------------
Then i did some trail and error by commenting "server .call" method here am not getting any error.So i expected there may ba a problem in "server.call" method.Because even if dont pass arguments its throwing same error.
Can Any one help me out in this issue?
thanks
Srikanth
