🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.ruby
7 messages
7 total messages Started by Alan Fri, 22 Feb 2008 11:12
SoapClient problem
#942
Author: Alan
Date: Fri, 22 Feb 2008 11:12
39 lines
1698 bytes
Cześć,

próbuję uruchomić klienta SOAP niestety bez sukcesu.
Platforma Win2003server,
Rails 2.0.2,
Actionwebservice 1.2.6.

W katalogu apis, tworze EmployeeAPI:

class EmployeeAPI < ActionWebService::API::Base
   api_method :login,
              :expects => [:string, :string, :string],
              :returns => [:integer]
end

I następnie próbuję wywołać metodę zdefiniowaną tak:

class Login < ActiveRecord::Base
    def self.soap_client
     	ws = ActionWebService::Client::Soap.new(EmployeeApi, 'uri_api')
     	ws.login(string1, string2, string3)
    end
end

Czyli: odpowiedz = Login.soap_client

W wyniku dostaję taki oto komunikat:

uninitialized constant Login::ActionWebService

E:/rails/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:478:in 
`const_missing'
app/models/login.rb:13:in `soap_client'
app/controllers/main_controller.rb:32:in `test'

proszę o pomoc bo utknąłem

-- 
Alan
Re: SoapClient problem
#943
Author: Radosław Bułat
Date: Sat, 23 Feb 2008 19:22
16 lines
1254 bytes
> uninitialized constant Login::ActionWebService
> 
> E:/rails/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:478:in 
> `const_missing'
> app/models/login.rb:13:in `soap_client'
> app/controllers/main_controller.rb:32:in `test'
> 
> proszę o pomoc bo utknąłem
> 

Spróbuj odwołać się poprzez ::ActionWebService.


-- 
Radosław Bułat
http://radarek.jogger.pl - mój blog
Re: SoapClient problem
#944
Author: Alan
Date: Sat, 23 Feb 2008 20:11
33 lines
1727 bytes
Radosław Bułat pisze:
>> uninitialized constant Login::ActionWebService
>>
>> E:/rails/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:478:in 
>> `const_missing'
>> app/models/login.rb:13:in `soap_client'
>> app/controllers/main_controller.rb:32:in `test'
>>
>> proszę o pomoc bo utknąłem
>>
> 
> Spróbuj odwołać się poprzez ::ActionWebService.
> 
> 

to samo niestety:

NameError in MainController#test

uninitialized constant ActionWebService

E:/rails/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:266:in 
`load_missing_constant'
E:/rails/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:in 
`const_missing'
E:/rails/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:465:in 
`const_missing'


Co to może znaczyć? Nie mam dosintalowanego?

-- 
Alan
Re: SoapClient problem
#945
Author: Radosław Bułat
Date: Sun, 24 Feb 2008 01:24
5 lines
1028 bytes
http://www.texperts.com/2007/12/21/using-action-web-service-with-rails-20/

-- 
Radosław Bułat
http://radarek.jogger.pl - mój blog
Re: SoapClient problem
#946
Author: Alan
Date: Sun, 24 Feb 2008 15:12
16 lines
1366 bytes
Radosław Bułat pisze:
> http://www.texperts.com/2007/12/21/using-action-web-service-with-rails-20/
> 

Dziękuję za pomoc ale nadal żadnego efektu. Po wgraniu do 
vendor/rails/actionwebservice plików, dostaje komunikat:

E:/rails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in 
`gem_original_require': no such file to load -- 
./script/../config/../vendor/rails/railties/lib/initializer (LoadError)


jeszcze trochę i wrócę do Rails 1.x, tam aws był w core...

-- 
Alan
Re: SoapClient problem
#948
Author: Michał Kurek
Date: Mon, 25 Feb 2008 08:43
21 lines
1246 bytes
W artykule <fpmao2$k83$1@news2.task.gda.pl>, Alan napisał(a):

> Cze??,
> 
> próbuj? uruchomi? klienta SOAP niestety bez sukcesu.
> Platforma Win2003server,
> Rails 2.0.2,
> Actionwebservice 1.2.6.

Rails 2.0.2:
"ActionWebService out, ActiveResource in"
To jedna z wiekszych zmian w ror2.

Ale tutaj chyba ktos proboje:
http://42.pl/u/yPH

Pozdrawiam Michal Kurek

-- 
http://md6.org/
http://linuxlinki.md6.org/
Re: SoapClient problem
#947
Author: Michał Kurek
Date: Mon, 25 Feb 2008 15:29
16 lines
1441 bytes
W artykule <fps1iv$j52$1@achot.icm.edu.pl>, Alan napisał(a):

> `gem_original_require': no such file to load -- 
> ./script/../config/../vendor/rails/railties/lib/initializer (LoadError)
> 
> jeszcze troch? i wróc? do Rails 1.x, tam aws by? w core...

E. nie ma co sie zalamywac :)
Moze ten screencast Ci cos pomoze, jeszcze cieply :)
http://railscasts.com/episodes/94

Michal Kurek

-- 
http://md6.org/
http://linuxlinki.md6.org/
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads