source: TI12-security/trunk/python/Tests/xmlsec/WS-Security/wsServer.py @ 1461

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/Tests/xmlsec/WS-Security/wsServer.py@1461
Revision 1461, 527 bytes checked in by pjkersha, 15 years ago (diff)

Working version passes SignatureHandler? instance to ZSI.Binding.Send via sig_handler keyword to sign messages
from WS client.

Still to do:

  • Fix SignatureHandler? verify to handle replies from server
  • Server side - fix appropriate place for signature and verify code.
  • Property svn:executable set to *
Line 
1#!/usr/bin/env python
2
3import sys
4from wsInterface import *
5
6
7def echo(ps):
8    frame = sys._getframe().f_back
9    import pdb;pdb.set_trace()
10#    response._message = message.Parse(TC.Any('echo', aslist=0))[0]
11    request = ps.Parse(echoRequestWrapper)
12    response = echoResponseWrapper()   
13    response._message = request._message
14   
15    return response
16
17
18if __name__ == '__main__':
19    print "Server listening ..."
20    try:
21        dispatch.AsServer(port=8080)
22       
23    except KeyboardInterrupt:
24        sys.exit(0)
Note: See TracBrowser for help on using the repository browser.