You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
1.2 KiB

  1. :mod:`webservice` --- Remote Framework Access via HTTP
  2. ======================================================
  3. .. module:: webservice
  4. :synopsis: Class for Remote Framework Access via HTTP
  5. Framework Server Class
  6. ----------------------
  7. ..class:: FrameworkServer(remote_host, path, user='', password='', account='', cookies={}, opts={}, https = 0)
  8. Connect to a remote server via HTTP (webservice).
  9. * `remote_host` is the the address of the remote server
  10. * `path` is the path of the Framework (excluding index.cgi)
  11. .. method:: http_get_response(method, args)
  12. Run a method on the remote server, with the given arguments
  13. .. method:: runserverobj(doctype, docname, method, arg='')
  14. Returns the response of a remote method called on a system object specified by `doctype` and `docname`
  15. Example
  16. -------
  17. Connect to a remote server a run a method `update_login` on `Login Control` on a remote server::
  18. # connect to a remote server
  19. remote = FrameworkServer('s2.iwebnote.com', '/v170', 'testuser', 'testpwd', 'testaccount')
  20. # update the login on a remote server
  21. response = remote.runserverobj('Login Control', 'Login Control', 'update_login', session['user'])