I am a beginner so please excuse me, if i am doing something totally
wrong.
I have created a class and here is what it looks like:
class ServiceSoap < ::RPC::Driver
DefaultEndpointUrl =
“http://balrog/services/SearchWorker/service.asmx”
MappingRegistry = ::Mapping::Registry.new
…
…
def initialize(endpoint_url = nil)
endpoint_url ||= DefaultEndpointUrl
super(endpoint_url, nil)
self.mapping_registry = MappingRegistry
init_methods
end
…
…
end
I put in in app/controllers folder as “defaultDriver.rb”
in another controller, I am doing
require ‘defaultDriver.rb’
class RmssearchController < ApplicationController
layout “standard-layout”
def view
obj = ServiceSoap.new(nil) # line 10
response = ServiceSoap.helloWorld(nil)
render :text => response
end
end
and I am getting “uninitialized constant ServiceSoap” error at line 10
Any help is appreciated. Thnaks in Advanve.
Pradeep