source: TI12-security/trunk/python/ndg.security.server/ndg/security/server/AttAuthority/server-config.tac @ 1714

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndg.security.server/ndg/security/server/AttAuthority/server-config.tac@1714
Revision 1714, 954 bytes checked in by pjkersha, 14 years ago (diff)

Added wsdl2dispatch generated code and files for Twisted web server.

Line 
1# example.tac
2from AttAuthority_services_server import AttAuthorityService
3from ZSI.twisted.WSresource import WSResource
4from twisted.application import service, internet
5from twisted.web.server import Site
6from twisted.web.resource import Resource
7import socket
8
9class AttAuthorityImpl(AttAuthorityService, WSResource):
10     def __init__(self):
11         WSResource.__init__(self)
12
13     def soap_getAttCert(self, ps, **kw):
14         print 'soap_getAttCert'
15         #import pdb;pdb.set_trace()
16         request, response = AttAuthorityService.soap_getAttCert(self, ps)
17         response._attCert = 'ATTRIBUTE CERT'
18         return request, response
19
20portNum = 5700
21hostname = socket.gethostname()
22
23root = Resource()
24root.putChild('AttributeAuthority',  AttAuthorityImpl())
25siteFactory = Site(root)
26application = service.Application("WSRF-Container")
27port = internet.TCPServer(portNum, siteFactory)#, interface=hostname)
28port.setServiceParent(application)
Note: See TracBrowser for help on using the repository browser.