Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `get_web' for #<Savon::Client:0xb6d9fce0> #1

Open
robertoriv opened this issue Jan 30, 2011 · 3 comments
Open

undefined method `get_web' for #<Savon::Client:0xb6d9fce0> #1

robertoriv opened this issue Jan 30, 2011 · 3 comments

Comments

@robertoriv
Copy link

Hi,

I'm trying out your library and I'm getting the following error:

roberto@udesktop:~/code/activesptest$ ruby test.rb

  • ActiveSP::Site : http://www.blah.com/sitedirectory/
    /home/roberto/.rvm/gems/ruby-1.8.7-p330/gems/savon-xaop-0.7.2.5/lib/savon/client.rb:33:in method_missing': undefined methodget_web' for #Savon::Client:0xb6d9fce0 (NoMethodError)
    from /home/roberto/.rvm/gems/ruby-1.8.7-p330/gems/activesp-0.0.7/lib/activesp/site.rb:299:in send' from /home/roberto/.rvm/gems/ruby-1.8.7-p330/gems/activesp-0.0.7/lib/activesp/site.rb:299:incall'
    from /home/roberto/.rvm/gems/ruby-1.8.7-p330/gems/activesp-0.0.7/lib/activesp/site.rb:207:in call' from /home/roberto/.rvm/gems/ruby-1.8.7-p330/gems/activesp-0.0.7/lib/activesp/site.rb:221:indata__uncached'
    from (eval):5:in data' from /home/roberto/.rvm/gems/ruby-1.8.7-p330/gems/activesp-0.0.7/lib/activesp/site.rb:229:inattributes_before_type_cast__uncached'
    from (eval):5:in attributes_before_type_cast' from /home/roberto/.rvm/gems/ruby-1.8.7-p330/gems/activesp-0.0.7/lib/activesp/site.rb:243:inoriginal_attributes__uncached'
    from (eval):5:in original_attributes' from /home/roberto/.rvm/gems/ruby-1.8.7-p330/gems/activesp-0.0.7/lib/activesp/base.rb:121:incurrent_attributes__uncached'
    from (eval):5:in current_attributes' from /home/roberto/.rvm/gems/ruby-1.8.7-p330/gems/activesp-0.0.7/lib/activesp/base.rb:58:inhas_attribute?'
    from /home/roberto/.rvm/gems/ruby-1.8.7-p330/gems/activesp-0.0.7/lib/activesp/base.rb:99:in method_missing' from test.rb:9:inbrowse'
    from test.rb:26

I'm not sure if it's due to my ruby version, the fact that I'm using RVM, or that the gem is currently broken.

roberto@udesktop:~/code/activesptest$ ruby -v
ruby 1.8.7 (2010-12-23 patchlevel 330) [i686-linux]

@retorquere
Copy link

I think I have a similar issue:

C:/Ruby/lib/ruby/1.8/rexml/parsers/baseparser.rb:330:in `pull': Missing end tag for 'META' (got "HEAD") (REXML::ParseException)
Line:
Position:
Last 80 unconsumed characters:

You are not author from C:/Ruby/lib/ruby/1.8/rexml/parsers/streamparser.rb:16:in `parse' from C:/Ruby/lib/ruby/1.8/rexml/document.rb:201:in`parse_stream' from C:/Ruby/lib/ruby/gems/1.8/gems/savon-xaop-0.7.2.5/lib/savon/wsdl.rb:59:in `stream' from C:/Ruby/lib/ruby/gems/1.8/gems/savon-xaop-0.7.2.5/lib/savon/wsdl.rb:28:in`soap_actions' from C:/Ruby/lib/ruby/gems/1.8/gems/savon-xaop-0.7.2.5/lib/savon/wsdl.rb:44:in `respond_to?' from C:/Ruby/lib/ruby/gems/1.8/gems/savon-xaop-0.7.2.5/lib/savon/client.rb:33:in`method_missing' from C:/Ruby/lib/ruby/gems/1.8/gems/activesp-0.0.7/lib/activesp/site.rb:299:in `send' from C:/Ruby/lib/ruby/gems/1.8/gems/activesp-0.0.7/lib/activesp/site.rb:299:in`call' from C:/Ruby/lib/ruby/gems/1.8/gems/activesp-0.0.7/lib/activesp/site.rb:207:in `call' from C:/Ruby/lib/ruby/gems/1.8/gems/activesp-0.0.7/lib/activesp/site.rb:221:in`data__uncached' from (eval):5:in `data' from C:/Ruby/lib/ruby/gems/1.8/gems/activesp-0.0.7/lib/activesp/site.rb:229:in`attributes_before_type_cast__uncached' from (eval):5:in `attributes_before_type_cast' from C:/Ruby/lib/ruby/gems/1.8/gems/activesp-0.0.7/lib/activesp/site.rb:243:in`original_attributes__uncached' from (eval):5:in `original_attributes' from C:/Ruby/lib/ruby/gems/1.8/gems/activesp-0.0.7/lib/activesp/base.rb:121:in`current_attributes__uncached' from (eval):5:in `current_attributes' from C:/Ruby/lib/ruby/gems/1.8/gems/activesp-0.0.7/lib/activesp/base.rb:58:in`has_attribute?' from C:/Ruby/lib/ruby/gems/1.8/gems/activesp-0.0.7/lib/activesp/base.rb:99:in `method_missing' from C:/Home/NetBeansProjects/VrijeDagenSharepoint/lib/main.rb:17:in`browse' from C:/Home/NetBeansProjects/VrijeDagenSharepoint/lib/main.rb:35

@calamitas
Copy link
Member

@delirial:

Sorry for the late reply, we got no notifications from github.

Can you try the experimental branch. It contains a number of fixes, including one for your issue.

@friflaj:

Check if you pass the correct URL for the WSDL. The URL returns something else then a WSDL document. This could have something to do with authentication; failed authentication returns an HTML document that isn't valid XML and cannot be parsed by REXML. Could you try using a newer version of savon-xaop (0.7.2.5). It contains a number of changes including a fix related to authentication.

@robertoriv
Copy link
Author

@calamitas,

Tried switching to experimental. Got the same error:

osxbox:examples roberto$ pwd
/Users/roberto/code/ruby/activesp/examples
osxbox:examples roberto$ git branch

  • experimental
    master
    osxbox:examples roberto$ ruby browse.rb
  • ActiveSP::Site : http://edited.for.security
    /Users/roberto/.rvm/gems/ruby-1.9.2-p180/gems/savon-xaop-0.7.2.6/lib/savon/client.rb:33:in method_missing': undefined methodget_web' for #Savon::Client:0x00000100970850 (NoMethodError)
    from /Users/roberto/code/ruby/activesp/lib/activesp/site.rb:299:in call' from /Users/roberto/code/ruby/activesp/lib/activesp/site.rb:207:incall'
    from /Users/roberto/code/ruby/activesp/lib/activesp/site.rb:221:in data' from (eval):5:indata'
    from /Users/roberto/code/ruby/activesp/lib/activesp/site.rb:229:in attributes_before_type_cast' from (eval):5:inattributes_before_type_cast'
    from /Users/roberto/code/ruby/activesp/lib/activesp/site.rb:243:in original_attributes' from (eval):5:inoriginal_attributes'
    from /Users/roberto/code/ruby/activesp/lib/activesp/base.rb:121:in current_attributes' from (eval):5:incurrent_attributes'
    from /Users/roberto/code/ruby/activesp/lib/activesp/base.rb:58:in has_attribute?' from /Users/roberto/code/ruby/activesp/lib/activesp/base.rb:99:inmethod_missing'
    from browse.rb:11:in browse' from browse.rb:27:in'

osxbox:examples roberto$ gem list

*** LOCAL GEMS ***

abstract (1.0.0)
actionmailer (3.0.7)
actionpack (3.0.7)
activemodel (3.0.7)
activerecord (3.0.7)
activeresource (3.0.7)
activesp (0.0.7)
activesupport (3.0.7)
arel (2.0.9)
builder (3.0.0, 2.1.2)
bundler (1.0.12)
citier (0.1.11)
crack (0.1.8)
erubis (2.6.6)
i18n (0.5.0)
mail (2.2.19)
mime-types (1.16)
nokogiri (1.4.4)
ntlm-http (0.1.1.2, 0.1.1)
polyglot (0.3.1)
rack (1.2.2)
rack-mount (0.6.14)
rack-test (0.5.7)
rails (3.0.7)
railties (3.0.7)
rake (0.8.7)
savon-xaop (0.7.2.6, 0.7.2.5)
sqlite3 (1.3.3)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3.27)
osxbox:examples roberto$

Does anything look out of the ordinary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants