[問題] ruby處理soap使用savon

看板Ruby作者 (馬岱)時間10年前 (2014/05/19 16:24), 編輯推噓0(002)
留言2則, 2人參與, 最新討論串1/1
現在想用ruby (client端)去使用soap google一下就看到了savon,結果require之後卻完全沒辦法動作... 按照官方的tutorial的程式碼 require 'savon' client = Savon.client(wsdl: 'http://service.example.com?wsdl') client.operations response = client.call(:find_user, message: { id: 42 }) response.body $ ruby savontest.rb之後 .rvm/gems/ruby-2.0.0-p353/gems/excon-0.33.0/lib/excon/socket.rb:181: in `getaddrinfo': getaddrinfo: nodename nor servname provided, or not known (SocketError) (Excon::Errors::SocketError) from /Users/david/.rvm/gems/ruby-2.0.0-p353/gems/excon-0.33.0/ lib/excon/socket.rb:181:in `connect' from /Users/david/.rvm/gems/ruby-2.0.0-p353/gems/excon-0.33.0/ lib/excon/socket.rb:28:in `initialize' ...http://imgur.com/QQ09rvJ
錯誤狂噴,請問是我哪裡用錯了嗎? 我看了一下覺得soap應該跟getjson很像吧@@ 煩請解惑,謝謝... -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.121.146.35 ※ 文章網址: http://www.ptt.cc/bbs/Ruby/M.1400487861.A.8A3.html

05/19 17:53, , 1F
就連不到,先確定一下網址有沒有打錯或連不連的到吧
05/19 17:53, 1F

05/20 21:19, , 2F
感謝Ash大回答,原來真的是壞掉了連不上,狀況已排除
05/20 21:19, 2F
文章代碼(AID): #1JUR-rYZ (Ruby)
文章代碼(AID): #1JUR-rYZ (Ruby)