Displaying 1 result from an estimated 1 matches for "projectsapi".
Did you mean:
projectmap
2006 Jan 12
2
Web services and login?
...d to do this? I thought about using sessions but they
dont want to 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"...