Article View: pl.comp.lang.ruby
Article #942SoapClient problem
From: Alan
Date: Fri, 22 Feb 2008 11:12
Date: Fri, 22 Feb 2008 11:12
39 lines
1698 bytes
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
Technical Details
Message-ID:
<fpmao2$k83$1@news2.task.gda.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.task.gda.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.task.gda.pl!not-for-mail From: Alan <alan@interia.pl.aaaaa> Newsgroups: pl.comp.lang.ruby Subject: SoapClient problem Date: Fri, 22 Feb 2008 12:12:15 +0100 Organization: CI TASK http://www.task.gda.pl/ Lines: 39 Message-ID: <fpmao2$k83$1@news2.task.gda.pl> NNTP-Posting-Host: pc110-64.amg.gda.pl Mime-Version: 1.0 X-Trace: news2.task.gda.pl 1203678786 20739 153.19.64.110 (22 Feb 2008 11:13:06 GMT) X-Complaints-To: abuse@news.task.gda.pl NNTP-Posting-Date: Fri, 22 Feb 2008 11:13:06 +0000 (UTC) User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit