Displaying 1 result from an estimated 1 matches for "getproject".
Did you mean:
setproject
2006 Jan 12
2
Web services and login?
...work for me... Here''s what I''m doing as a little test:
class NotLoggedIn < Exception
end
class ProjectsController < ApplicationController
wsdl_service_name ''Projects''
web_service_api ProjectsApi
def Login
@session[:loggedIn] = true
end
def GetProjects
if @session[:loggedIn]
return Project.find(:all)
else
raise NotLoggedIn, "You are not logged in!"
end
end
def CreateProject(name)
Project.create(:name => name)
return name << "Wee"
end
end
Nothing fancy, but doing
ProjectService.Login();
Proje...