Guest User

Untitled

a guest
Jun 22nd, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. put this in application controller
  2.  
  3. def get_app_choices(personal_id,app_scheme_code)
  4.  
  5. require 'soap/wsdlDriver'
  6.  
  7. @setting = Ucasxmllinksetting.find(:first)
  8. wsdl = @setting.wsdl
  9. institutionCode = @setting.institutioncode
  10. userId = @setting.userid
  11. password = @setting.password
  12. lastUpdated = ''
  13. rowStartPosition = '0'
  14.  
  15. driver = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver
  16.  
  17. XSD::Charset.encoding = 'UTF8'
  18.  
  19. result = driver.getUCASApplicantChoices(institutionCode, userId, password, '', personal_id, app_scheme_code, '',rowStartPosition)
  20.  
  21. return result
  22.  
  23. end
Add Comment
Please, Sign In to add comment