Forum: Ruby on Rails WebServices: execution expired

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
783fed8af50259766b40d2f550ec5974?d=identicon&s=25 zven (Guest)
on 2006-05-17 22:03
(Received via mailing list)
1 hour spent and I can't got explanation why I have "execution expired"
when I trying to test this web service:

Pointed to: http://localhost:3000/news/list

class NewsService < ActionWebService::Base
  web_service_api NewsApi

  def list
    [NewsTopic.new, NewsTopic.new]
  end
end

class NewsController < ApplicationController
  wsdl_service_name 'news'

  web_service_dispatching_mode :delegated
  web_service :news, NewsService.new

  def list
    news = ActionWebService::Client::Soap.new(
      NewsApi, "http://localhost:3000/news/news")
    rsp = news.list
    render_text rsp.to_s
  end
end

Strange, but I have successful log message:

Web Service Response (0.024314): => [#<NewsTopic:0xb7612328
@attributes={"last_modified"=>nil, "title"=>nil, "id"=>nil,
"contents"=>nil, "preview"=>nil, "sticky"=>nil}, @new_record=true>,
#<NewsTopic:0xb7612314 @attributes={"last_modified"=>nil, "title"=>nil,
"id"=>nil, "contents"=>nil, "preview"=>nil, "sticky"=>nil},
@new_record=true>]
  <?xml version="1.0" encoding="UTF-8" ?>
  <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <env:Body>
      <n1:ListResponse xmlns:n1="urn:ActionWebService"
          env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
        <return n2:arrayType="n1:NewsTopic[2]"
            xmlns:n2="http://schemas.xmlsoap.org/soap/encoding/"
            xsi:type="n2:Array">
          <item>
            <id xsi:nil="true"></id>
            <title xsi:nil="true"></title>
            <preview xsi:nil="true"></preview>
            <contents xsi:nil="true"></contents>
            <sticky xsi:nil="true"></sticky>
            <last_modified xsi:nil="true"></last_modified>
          </item>
          <item>
            <id xsi:nil="true"></id>
            <title xsi:nil="true"></title>
            <preview xsi:nil="true"></preview>
            <contents xsi:nil="true"></contents>
            <sticky xsi:nil="true"></sticky>
            <last_modified xsi:nil="true"></last_modified>
          </item>
        </return>
      </n1:ListResponse>
    </env:Body>
  </env:Envelope>
Sending data
Completed in 0.03303 (30 reqs/sec) | Rendering: 0.00013 (0%) | DB:
0.00762 (23%) | 200 OK [http://localhost/news/news]
53cca1f55d947a176d419736ab639f1e?d=identicon&s=25 Bala Paranj (Guest)
on 2006-05-18 05:28
(Received via mailing list)
I am following the instruction on the wiki and when I run: gem install
login_generator

I get: Permission denied -
/usr/local/lib/ruby/gems/1.8/cache/login_generator-1.2.0.gem

How can fix this? Thanks in advance.

http://www.ProblemSolvingSkill.net
Hone your problem-solving skills
53cca1f55d947a176d419736ab639f1e?d=identicon&s=25 Bala Paranj (Guest)
on 2006-05-18 06:39
(Received via mailing list)
I am following the instructions at http://rails-engines.org/ and I got
Cannot install using
subversion because `svn' cannot be found in your PATH error message when
I ran script/plugin
install -x command. So I installed the Subversion and now I am getting
Cannot install using
externals because this project is not under subversion.

What are the pre-requisites to installing the login engine? Should I
install the Subversion client
on my machine? I am on Mac OS 10.4. Thanks in advance.


http://www.ProblemSolvingSkill.net
Hone your problem-solving skills
E28c35323f624b8b9ed8712e25105454?d=identicon&s=25 Ray Baxter (Guest)
on 2006-05-18 06:51
(Received via mailing list)
Bala Paranj wrote:
> I am following the instruction on the wiki and when I run: gem install login_generator
>
> I get: Permission denied - /usr/local/lib/ruby/gems/1.8/cache/login_generator-1.2.0.gem
>
> How can fix this? Thanks in advance.

By changing the permissions so that you can both read that file and that
directory. You also need to have execute permission on the directory.
Since this is a system directory, ultimately you will have to have root
privileges.

sudo gem install login_generator

is probably the magic incantation that you want.

--

Ray
This topic is locked and can not be replied to.