読者です 読者をやめる 読者になる 読者になる

MSN Developer Center: MSN Search

http://msdn.microsoft.com/msn/msnsearch/

9/13日、MSN Developer Centerがオープンした。中身を軽く覗いてみるとWebからHackできそうなのはWSDLで提供されているMSN Search Webservice。.NET Passportで認証した後にApplication IDを取得すれば使えるみたい。wsdlのURLは

http://soap.search.msn.com/webservices.asmx?wsdl

ということで早速HackしてさくっとAjax検索でも…、と思ったのだけど、soap4rのwsdl2ruby.rbでwdslからクラス自動生成しようとしたけれど、エラーが出て作成されない…。msn searchのwsdlをちょっと見てみたけど難しくてわからない!検索ぐらいREST APIで簡単に叩かせてくれてもいいのに…、と思いましたp−q。

最後にとりあえずエラーメッセージ。

$ wsdl2ruby.rb --wsdl 'http://soap.search.msn.com/webservices.asmx?wsdl' --type client --force
ignored element: {http://www.w3.org/2001/XMLSchema}list
ignored attr: {}default
ignored attr: {http://schemas.xmlsoap.org/ws/2004/08/addressing}Action
I, [2005-09-17T00:29:13.686759 #27152]  INFO -- app: Creating class definition.
W, [2005-09-17T00:29:13.687206 #27152]  WARN -- app: File 'default.rb' exists but overrides it.
F, [2005-09-17T00:29:13.698146 #27152] FATAL -- app: Detected an exception. Stopping ... incomplete simpleType (ArgumentError)
/usr/lib/ruby/1.8/wsdl/xmlSchema/simpleType.rb:33:in `base'
/usr/lib/ruby/1.8/wsdl/soap/classDefCreator.rb:217:in `basetype_class'
/usr/lib/ruby/1.8/wsdl/soap/classDefCreator.rb:195:in `element_basetype'
/usr/lib/ruby/1.8/wsdl/soap/classDefCreator.rb:138:in `dump_classdef'
/usr/lib/ruby/1.8/wsdl/soap/classDefCreator.rb:135:in `each_element'
/usr/lib/ruby/1.8/wsdl/xmlSchema/complexType.rb:52:in `each'
/usr/lib/ruby/1.8/wsdl/xmlSchema/complexType.rb:52:in `each_element'
/usr/lib/ruby/1.8/wsdl/soap/classDefCreator.rb:135:in `dump_classdef'
/usr/lib/ruby/1.8/wsdl/soap/classDefCreator.rb:80:in `dump_complextype'
/usr/lib/ruby/1.8/wsdl/soap/classDefCreator.rb:77:in `collect'
/usr/lib/ruby/1.8/wsdl/soap/classDefCreator.rb:77:in `each'
/usr/lib/ruby/1.8/xsd/namedelements.rb:57:in `each'
/usr/lib/ruby/1.8/xsd/namedelements.rb:57:in `each'
/usr/lib/ruby/1.8/wsdl/soap/classDefCreator.rb:77:in `dump_complextype'
/usr/lib/ruby/1.8/wsdl/soap/classDefCreator.rb:41:in `dump'
/usr/lib/ruby/1.8/wsdl/soap/wsdl2ruby.rb:64:in `create_classdef'
/usr/lib/ruby/1.8/wsdl/soap/wsdl2ruby.rb:63:in `write_file'
/usr/lib/ruby/1.8/wsdl/soap/wsdl2ruby.rb:134:in `open'
/usr/lib/ruby/1.8/wsdl/soap/wsdl2ruby.rb:134:in `write_file'
/usr/lib/ruby/1.8/wsdl/soap/wsdl2ruby.rb:63:in `create_classdef'
/usr/lib/ruby/1.8/wsdl/soap/wsdl2ruby.rb:51:in `create_file'
/usr/lib/ruby/1.8/wsdl/soap/wsdl2ruby.rb:36:in `run'
/usr/local/bin/wsdl2ruby.rb:42:in `run'
/usr/lib/ruby/1.8/logger.rb:684:in `start'
/usr/local/bin/wsdl2ruby.rb:125
I, [2005-09-17T00:29:13.699157 #27152]  INFO -- app: End of app. (status: -1)