Search the web
Sign In
New User? Sign Up
xml-rpc · XML-RPC Discussion
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Not able to connect to Yahoo server using XML-RPC client   Message List  
Reply | Forward Message #6821 of 6839 |
Hi All,

I want to test my client code to connect to the yahoo server using XML-RPC.


Below is my Client code to connect to Flicker service implemented in yahoo using
API "flickr.groups.search".

----------------------------------------------------------------------
require "xmlrpc/client"

# Make an object to represent the XML-RPC server.
server = XMLRPC::Client.new2( "http://api.flickr.com/services/api/")

# Call the remote server and get our result
result =
server.call("flickr.groups.search","f9163a092be90899ca376899dd5b92a8","api","5")\
.inspect
if result
puts 'Hey, it worked!'
else
puts 'Back to the drawing board...'
end

puts result
----------------------------------------------------------------------
I could not able to connet to server and throwing error like:

F:\srikanth-smruti\testlinkapi>ruby client.rb
c:/ruby/lib/ruby/1.8/net/http.rb:560:in `initialize': getaddrinfo: no address as
sociated with hostname. (SocketError)
from c:/ruby/lib/ruby/1.8/net/http.rb:560:in `open'
from c:/ruby/lib/ruby/1.8/net/http.rb:560:in `connect'
from c:/ruby/lib/ruby/1.8/timeout.rb:56:in `timeout'
from c:/ruby/lib/ruby/1.8/timeout.rb:76:in `timeout'
from c:/ruby/lib/ruby/1.8/net/http.rb:560:in `connect'
from c:/ruby/lib/ruby/1.8/net/http.rb:553:in `do_start'
from c:/ruby/lib/ruby/1.8/net/http.rb:542:in `start'
from c:/ruby/lib/ruby/1.8/net/http.rb:1032:in `request'
from c:/ruby/lib/ruby/1.8/net/http.rb:989:in `post2'
from c:/ruby/lib/ruby/1.8/xmlrpc/client.rb:535:in `do_rpc'
from c:/ruby/lib/ruby/1.8/xmlrpc/client.rb:420:in `call2'
from c:/ruby/lib/ruby/1.8/xmlrpc/client.rb:410:in `call'
from client.rb:7

can any one suggest is there any problem in my code?
And help me out from this probelm.

thanks
Srikanth




Tue Jul 7, 2009 9:41 am

sirikanthg
Offline Offline
Send Email Send Email

Forward
Message #6821 of 6839 |
Expand Messages Author Sort by Date

Hi All, I want to test my client code to connect to the yahoo server using XML-RPC. Below is my Client code to connect to Flicker service implemented in yahoo...
sirikanthg
Offline Send Email
Jul 7, 2009
9:44 am

... From: sirikanthg <sirikanthg@...> Subject: [xml-rpc] Not able to connect to Yahoo server using XML-RPC client To: xml-rpc@yahoogroups.com Date:...
Jane Juza
flowerwriter
Offline Send Email
Sep 16, 2009
6:38 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help