• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

import logging
 
from pyamf.remoting.client import RemotingService
 
 
logging.basicConfig(
    level=logging.DEBUG,
    format='%(asctime)s %(levelname)-5.5s [%(name)s] %(message)s'
)
 
 
path = 'http://localhost:8080/gateway/'
gw = RemotingService(path, logger=logging)
service = gw.getService('myservice')
 
print service.echo('Hello World!')