• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

contrib/opal/ZSI/test/wsdl2py/servers/SquareService.py

00001 #!/usr/bin/env python
00002 ############################################################################
00003 # Joshua R. Boverhof, LBNL
00004 # See LBNLCopyright for copyright notice!
00005 ###########################################################################
00006 import sys
00007 import SquareService_server as Square
00008 from ZSI.ServiceContainer import AsServer
00009 
00010 class Service(Square.SquareService):
00011 
00012     def soap_getSquare(self, ps):
00013         request,response = Square.SquareService.soap_getSquare(self, ps)
00014         response._return = self.getSquare(request._x)
00015         return request,response
00016 
00017     def getSquare(self, x):
00018         return x**2
00019 
00020 
00021 if __name__ == "__main__" :
00022     port = int(sys.argv[1])
00023     AsServer(port, (Service('test'),))

Generated on Wed Oct 20 2010 11:12:16 for APBS by  doxygen 1.7.2