API: LOGINUSER response not proper
I am using Ruby on Rails to make request to Yellowfin server using below code.
wsdl_url = 'http://52.76.137.98:7075/services/AdministrationService?wsdl'
base_url = 'http://52.76.137.98:7075/'
userNameToLogin = 'xxxx@gmail.com'
userPasswordToLogin = 'xxxxx'
webserviceAdmin = 'xxxx@qest.com'
webserviceAdminPassword = '123456'
paramsse= Hash.new
userToLogin= Hash.new
userToLogin['userId']=userNameToLogin;
userToLogin['password']=userPasswordToLogin;
paramsse['function']='LOGINUSER'
paramsse['person']= userToLogin
paramsse['loginId']= webserviceAdmin
paramsse['password']= webserviceAdminPassword
paramsse['orgId']=1
paramsse['ntlm']=false
uri = URI(wsdl_url)
uri.query = URI.encode_www_form(paramsse)
res = Net::HTTP.get_response(uri)
puts res.body if res.is_a?(Net::HTTPSuccess)
The GET request is successfull but the body contains just
"<h1>AdministrationService</h1>\n<p>Hi there, this is an AXIS service!</p>\n<i>Perhaps there will be a form for invoking the service here...</i>\n"
No other details.
Please advise how to get the proper response.
Hi Mahendra,
I am not entirely familiar with Ruby on Rails, but it looks as though you are trying to use this as a REST API. Yellowfin's web-services are built around SOAP API calls, so you will need to instantiate a client and then pass any calls through that.
A brief google led me:
http://savonrb.com/
Please let me know your thoughts.
Nathan
Hi Mahendra,
I am not entirely familiar with Ruby on Rails, but it looks as though you are trying to use this as a REST API. Yellowfin's web-services are built around SOAP API calls, so you will need to instantiate a client and then pass any calls through that.
A brief google led me:
http://savonrb.com/
Please let me know your thoughts.
Nathan
Hi Mahendra,
I am going to close this ticket.
Cheers,
Nathan
Hi Mahendra,
I am going to close this ticket.
Cheers,
Nathan
Replies have been locked on this page!