# Ruby XML-RPC question (slightly OT)

**URL:** <https://www.ruby-forum.com/t/ruby-xml-rpc-question-slightly-ot/103619>\
**Category:** Ruby\
**Created:** [May 8, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/ruby-xml-rpc-question-slightly-ot/103619 "2007-05-08T15:11:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshuajnoble](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c37758/32.png) [@joshuajnoble](https://www.ruby-forum.com/u/joshuajnoble)\
**Post date:** [May 8, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/ruby-xml-rpc-question-slightly-ot/103619/1 "2007-05-08T15:11:28Z")

</div>

Hi, I’ve got a little Ruby script that I’m trying to get to  
successfully read from wordpress blogs for an aggregator of sorts, but  
I haven’t had any luck. XML-RPC is enabled for the blog and I doubled  
checked that it’s working. I just followed along with the code  
presented here

[![Imgur](https://live.staticflickr.com/147/395003896_e03b2d2bac_b.jpg "xmlrpc/client.rb blog access to wordpress") ](https://www.flickr.com/photos/keynote/395003896/sizes/o/)

because it seems pretty straightforward. I did this:

`require 'xmlrpc/client.rb' begin server = XMLRPC::Client.new("http://thefactoryfactory.com/ wordpress", "/xmlrpc.php", 80) result = server.call("mt.supportedMethods", 0, "log", "pass") puts result rescue XMLRPC::FaultException => e puts "error code : #{e.faultCode}" puts "error string : #{e.faultString}" end`

But I get back

initialize’: getaddrinfo: No address associated with nodename  
(SocketError)  
from /usr/local/lib/ruby/1.8/net/http.rb:560:in `open’

Has anyone done this (or something similar) before? Thanks in advance  
for any info,

josh

---

<div class="post-metadata">

**Author:** ![joshuajnoble](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c37758/32.png) [@joshuajnoble](https://www.ruby-forum.com/u/joshuajnoble)\
**Post date:** [May 8, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/ruby-xml-rpc-question-slightly-ot/103619/2 "2007-05-08T15:11:28Z")

</div>

Oops. My bad. I just changed

server = XMLRPC::Client.new(“[http://thefactoryfactory.com/](http://thefactoryfactory.com/)  
wordpress”, “/xmlrpc.php”, 80)

to

server = XMLRPC::Client.new(“[thefactoryfactory.com/](http://thefactoryfactory.com/)  
wordpress”, “/xmlrpc.php”, 80)

duh.

---

<div class="post-metadata">

**Author:** ![joshuajnoble](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c37758/32.png) [@joshuajnoble](https://www.ruby-forum.com/u/joshuajnoble)\
**Post date:** [May 9, 2007, 6:25pm UTC](https://www.ruby-forum.com/t/ruby-xml-rpc-question-slightly-ot/103619/3 "2007-05-09T18:25:57Z")

</div>

joshuajnoble wrote:

> Hi, I’ve got a little Ruby script that I’m trying to get to  
> successfully read from wordpress blogs for an aggregator of sorts, but  
> I haven’t had any luck. XML-RPC is enabled for the blog and I doubled  
> checked that it’s working. I just followed along with the code  
> presented here
> 
> [All sizes | xmlrpc/client.rb blog access to wordpress | Flickr - Photo Sharing!](http://www.flickr.com/photo_zoom.gne?id=395003896&size=o)

hi, that’s my Flickr area, and my code 🙂  
I have the Blogging From Vim ruby-script working fine, as you can see in  
the other photos. I’ll publish it very soon. It is now working very  
fine, and some people already using it, and allows you to blog directly  
from VI / VIM / GVIM. If you want to, i’ll copy/paste the it here. Do  
you ?

best regards,
