Ticket #323: client.py
| File client.py, 370 bytes (added by thijs, 5 months ago) |
|---|
| Line | |
|---|---|
| 1 | import logging |
| 2 | |
| 3 | logging.basicConfig( |
| 4 | level=logging.DEBUG, |
| 5 | format='%(asctime)s %(levelname)-5.5s [%(name)s] %(message)s' |
| 6 | ) |
| 7 | |
| 8 | from pyamf.remoting.client import RemotingService |
| 9 | |
| 10 | client = RemotingService('http://localhost:8080') |
| 11 | |
| 12 | service1 = client.getService('example') |
| 13 | print service1.testn('Hello World') |
| 14 | print service1.add('user1234', 'John Doe', 'secret') |
