Advertisement
Guest User

Untitled

a guest
May 6th, 2014
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. wsdl_url = 'https://internalserver/cwautoprox.asmx?WSDL'
  2. username = 'testuser'
  3. password = 'password'
  4. apikey = 'dM43B4e'
  5.  
  6. # Configure client
  7. client = Savon.client(wsdl: wsdl_url, ssl_verify_mode: :none)
  8.  
  9. # Authenticate
  10. authResponse = client.call(:authenticate_user, message: {
  11. username: username,
  12. password: password,
  13. APIKey: apikey
  14. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement