0
我想連接到oracle crm on demand Web服務url:從我的rhodes應用程序。在application.rb中我rhosync應用程序的代碼看起來是這樣的......Rhosync服務器錯誤:服務器返回錯誤
def authenticate(username,password,session)
puts "USER:#{username}"
success = false
puts "Inside Authenticate method"
begin
oraclecrm_url = Application.get_settings[:oraclecrm_service_url]
request_url = oraclecrm_url + "?command=" + 'login'
puts "******************"
puts oraclecrm_url
puts request_url
puts username
puts password
puts "******************"
# here we just verifying the credetials
# by loggin in and immediately logging out
in_headers = {
"UserName" => username,
"Password" => password
};
puts request_url
RestClient.get(request_url, in_headers) do |response,request,result,&block|
puts "*******************"
puts response.code
puts request_url
puts "********************" # Works Fine Upto this point...
case response.code
when 200
# store password to be used by SourceAdaptors
puts "*******************"
puts response.code
puts request_url
puts "Login Successful!!!!!"
puts "********************"
Store.put_value("#{username}:password", password)
Store.put_value("#{username}:service_url", oraclecrm_url)
但即在response.code返回500,所以我得到一個錯誤的登錄錯誤我正在一個HTTP錯誤500。和無用的用戶名或密碼一樣確保您的大寫鎖定已關閉,然後重試。代碼是SBL-ODU-01006。我輸入了有效的ID和密碼,這沒有問題。 我遵循的步驟;
$ rake redis:start
$ rake rhosync:start
$ rake run:android
後模擬器運行起來我進入我的credientials和我得到的錯誤消息服務器返回錯誤。
有人可以解決這個問題嗎?