« Cho-pan | Main | 機種変してきた »

September 14, 2004

ISO8601形式?

RubyでXML-RPCを使ったココログ投稿ツールの作成を続けている。で、記事の日付はISO8601形式で書かなきゃいけないらしい。なんじゃそりゃ?と思ったが、xmlrpc4r任せでもいいのかも知れない。とりあえず、記事を取ってみればそこに入っているからそれを真似すればいいんだろう

再びirbでテスト

t:\>irb
irb(main):001:0> require "xmlrpc/client"
=> true
irb(main):003:0> server = XMLRPC::Client.new("app.cocolog-nifty.com","/t/api")
=> #, @proxy_host=nil>
irb(main):004:0> article = server.call("metaWeblog.getRecentPosts",blogid,username,password,2)
RuntimeError: wrong dateTime.iso8601 format
from C:/PROGRAM FILES/RUBY/lib/ruby/site_ruby/1.8/xmlrpc/parser.rb:96:in `dateTime'
from C:/PROGRAM FILES/RUBY/lib/ruby/site_ruby/1.8/xmlrpc/parser.rb:536:in `tag_end'
from C:/PROGRAM FILES/RUBY/lib/ruby/1.8/rexml/parsers/streamparser.rb:19:in `parse'
from C:/PROGRAM FILES/RUBY/lib/ruby/1.8/rexml/document.rb:166:in `parse_stream'
from C:/PROGRAM FILES/RUBY/lib/ruby/site_ruby/1.8/xmlrpc/parser.rb:720:in `parse'
from C:/PROGRAM FILES/RUBY/lib/ruby/site_ruby/1.8/xmlrpc/parser.rb:460:in `parseMethodResponse'
from C:/PROGRAM FILES/RUBY/lib/ruby/site_ruby/1.8/xmlrpc/client.rb:379:in `call2'
from C:/PROGRAM FILES/RUBY/lib/ruby/site_ruby/1.8/xmlrpc/client.rb:368:in `call'
from (irb):4
irb(main):005:0>

だめじゃん・・・orz

|
|

« Cho-pan | Main | 機種変してきた »

Comments

Post a comment



(Not displayed with comment.)


Comments are moderated, and will not appear on this weblog until the author has approved them.



TrackBack

TrackBack URL for this entry:
http://app.cocolog-nifty.com/t/trackback/47905/1432478

Listed below are links to weblogs that reference ISO8601形式?:

« Cho-pan | Main | 機種変してきた »