2012-02-25 8 views
0

私たちのアプリでいくつかのものをアップグレードしたところ、AkamaiへのSOAPリクエストは発砲していません。Rails 3:Soap4rがakamaiリクエストのために "Assert:unknown array definition"を返しました

require 'rexml/document' 

class Akamai 
    def self.purge_cache(url) 
    require 'soap/wsdlDriver' 
    factory = SOAP::WSDLDriverFactory.new('https://ccuapi.akamai.com/ccuapi-axis.wsdl') 
    driver = factory.create_rpc_driver 
    driver.purgeRequest(
     'our-username', # username 
     'our-password', # password 
     '', # network; deprecated 
     [], # options 
     [url] 
    ) 
    end 
end 

私はそれが私たちのアップグレード枝上に追加されたいくつかの新しい宝石かもしれないと思ったが、Gemfileに2つしか追加があります:ユニットテストではなくRuntimeError: Assert: unknown array definition

のリターンはここでアカマイクラスの原因:

gem 'libxml-ruby', '1.1.4' 
gem 'nokogiri' 

これらを削除しても問題は解決されません。ここでエラーが吐き出すです:

test_unsuccessful_purge(AkamaiTest): 
RuntimeError: Assert: Unknown array definition. 
    /Users/kevin/.rvm/gems/[email protected]/gems/soap4r-ruby1.9-2.0.3/lib/wsdl/soap/complexType.rb:122:in `find_arytype' 
    /Users/kevin/.rvm/gems/[email protected]/gems/soap4r-ruby1.9-2.0.3/lib/wsdl/soap/complexType.rb:161:in `content_arytype' 
    /Users/kevin/.rvm/gems/[email protected]/gems/soap4r-ruby1.9-2.0.3/lib/wsdl/soap/complexType.rb:55:in `child_type' 
    /Users/kevin/.rvm/gems/[email protected]/gems/soap4r-ruby1.9-2.0.3/lib/soap/mapping/wsdlencodedregistry.rb:168:in `array2soap' 
    /Users/kevin/.rvm/gems/[email protected]/gems/soap4r-ruby1.9-2.0.3/lib/soap/mapping/wsdlencodedregistry.rb:145:in `complexobj2soap' 
    /Users/kevin/.rvm/gems/[email protected]/gems/soap4r-ruby1.9-2.0.3/lib/soap/mapping/wsdlencodedregistry.rb:121:in `obj2typesoap' 
    /Users/kevin/.rvm/gems/[email protected]/gems/soap4r-ruby1.9-2.0.3/lib/soap/mapping/wsdlencodedregistry.rb:38:in `obj2soap' 
    /Users/kevin/.rvm/gems/[email protected]/gems/soap4r-ruby1.9-2.0.3/lib/soap/mapping/mapping.rb:135:in `_obj2soap' 
    /Users/kevin/.rvm/gems/[email protected]/gems/soap4r-ruby1.9-2.0.3/lib/soap/mapping/mapping.rb:54:in `block (2 levels) in objs2soap' 
    /Users/kevin/.rvm/gems/[email protected]/gems/soap4r-ruby1.9-2.0.3/lib/soap/mapping/mapping.rb:52:in `upto' 
    /Users/kevin/.rvm/gems/[email protected]/gems/soap4r-ruby1.9-2.0.3/lib/soap/mapping/mapping.rb:52:in `block in objs2soap' 
    /Users/kevin/.rvm/gems/[email protected]/gems/soap4r-ruby1.9-2.0.3/lib/soap/mapping/mapping.rb:560:in `block in protect_mapping' 
    /Users/kevin/.rvm/gems/[email protected]/gems/soap4r-ruby1.9-2.0.3/lib/soap/mapping/mapping.rb:533:in `protect_threadvars' 
    /Users/kevin/.rvm/gems/[email protected]/gems/soap4r-ruby1.9-2.0.3/lib/soap/mapping/mapping.rb:549:in `protect_mapping' 
    /Users/kevin/.rvm/gems/[email protected]/gems/soap4r-ruby1.9-2.0.3/lib/soap/mapping/mapping.rb:51:in `objs2soap' 
    /Users/kevin/.rvm/gems/[email protected]/gems/soap4r-ruby1.9-2.0.3/lib/soap/rpc/proxy.rb:475:in `request_rpc_enc' 
    /Users/kevin/.rvm/gems/[email protected]/gems/soap4r-ruby1.9-2.0.3/lib/soap/rpc/proxy.rb:457:in `request_rpc' 
    /Users/kevin/.rvm/gems/[email protected]/gems/soap4r-ruby1.9-2.0.3/lib/soap/rpc/proxy.rb:412:in `request_body' 
    /Users/kevin/.rvm/gems/[email protected]/gems/soap4r-ruby1.9-2.0.3/lib/soap/rpc/proxy.rb:127:in `call' 
    /Users/kevin/.rvm/gems/[email protected]/gems/soap4r-ruby1.9-2.0.3/lib/soap/rpc/driver.rb:151:in `call' 
    (eval):6:in `purgeRequest' 
    /Users/kevin/code/medialytics/app/models/akamai.rb:8:in `purge_cache' 
    test/unit/akamai_test.rb:12:in `block in <class:AkamaiTest>' 

答えて

0

が、私はそれがより多くの最近更新されていますから、すべて一緒にSOAP4R-ruby1.9をダンプし、サボンと一緒に行くことになった、より良い入れ、一緒のようです。

+0

同意します。サバンははるかに簡単です – revolver

関連する問題