Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7536387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:33:37+00:00 2026-05-30T06:33:37+00:00

Im working with ruby 1.9.2, rails 3.2.1, and mysql, I have a rest app,

  • 0

Im working with ruby 1.9.2, rails 3.2.1, and mysql, I have a rest app, but the links dont works,when I go to the localhost:3000 I get:

Errno::ENOENT in WsController#registro

No such file or directory - C:/Ruby192/PROYECTOS/loteriab/doc/loteria_registro.wsdl
Rails.root: C:/Ruby192/PROYECTOS/loteriab

Application Trace | Framework Trace | Full Trace
app/controllers/ws_controller.rb:43:in `get_result'
app/controllers/ws_controller.rb:33:in `registro'

here is code:

my view.html.erb

> <div id="menu">         <ul>            <li>            <%= link_to "login", root_path %><p
> >es el proceso mediante el cual se controla el acceso individual al webservice de loteria mediante la identificación del usuario
> utilizando credenciales provistas por el usuarioUn usuario</p>          <%=
> link_to "registro", root_path %>
>         
>         
> 
>             <%= link_to " login ", "ws/registro"  %>
>              </li>      </ul>   </div>

my routes:

root :to => 'ws#inicio'


  # See how all your routes lay out with "rake routes"

  # This is a legacy wild controller route that's not recommended for RESTful applications.
  # Note: This route will make all actions in every controller accessible via GET requests.
   match ':controller(/:action(/:id))(.:format)'
end

my controller:

require 'savon'

class WsController < ApplicationController   def inicio   end

  def login
    data = {"Version" => "xx",
      "CodEmpresa" => "xx",
      "Rut" => "1579xxxxx-x",
      "Clave" => "xxxx",
      "SO" => "xx",
      "Tipodispositivo" => "xx"}

    response = get_result("loteria_autentificacion", data)

    render :text => response


       end

  def registro
    data = {"Version" => "01",
      "CodEmpresa" => "01",
      "CodAgente" => "01",
      "Rut" => "1579xxxxx-x",
      "email" => "xxxx@xxxxxxx.com",
      "Clave" => "xxxx",
      "SO" => "xx",
      "Tipodispositivo" => "xx"}

    response = get_result("loteria_registro", data)

    render :xml => response   end

  def get_result(service, data)
    client = Savon::Client.new do
      wsdl.document = File.expand_path("#{Rails.root}/doc/#{service}.wsdl", __FILE__)
    end

    response = client.request :wsdl, service do
      soap.body = data
    end

    return response.to_xml   end end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T06:33:39+00:00Added an answer on May 30, 2026 at 6:33 am

    This line in your code, wsdl.document = File.expand_path("#{Rails.root}/doc/#{service}.wsdl", __FILE__) is telling savon to look for the WSDL at “C:/Ruby192/PROYECTOS/loteriab/doc/loteria_registro.wsdl”.

    The error is saying that the WSDL file, loteria_registro.wsdl, is not where the code line specifies. Either download the WSD and place it there or change the wsdl.document to point to the Web Service.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm working with ruby 1.9.2, rails 3.1.3, devise 1.5.3, mysql, my app is about
Hello Ruby/Rails/Merb developers! Im currently working on a web project that will have a
We're working on a Ruby on Rails app that needs to take advantage of
I'm working with Ruby on rails 2.3.4 and I'd like to have a link
I have working fine my installation of Ruby on Rails on my Snow Leopard.
I am using ruby on rails with a MySQL backend. I have a table
I have recently upgraded my gemfile to try and get Rails 3.1 working with
I'm working on a Ruby on Rails project where I have a post model
Finally deployed my ruby on rails 3.2 app but when trying to open it
I am working on a Ruby on Rails app that communicates with RackSpace cloudfiles

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.