I am looking for a solution to link IIS and Cherrypy.
I would like a specific explanation of doing this for Cherrypy as all others are for other applications like flask and django.
I can call the functions getHeight and getWidth by
using the call http://0.0.0.0:8080/getHeight
import cherrypy
import tileProvider
import time
class MyWebService(object):
provider = TileProvider('myPicture.JPEG')
@cherrypy.expose
def getHeight(self):
return str(MyWebService.provider.getHeight())
@cherrypy.expose
def getWidth(self):
return str(MyWebService.provider.getWidth())
if __name__ == '__main__':
IPv4 = socket.gethostbyname(socket.gethostname())
config = {'server.socket_host': IPv4,
'server.socket_port': 8080}
cherrypy.config.update(config)
cherrypy.quickstart(MyWebService())
So now how would create the same thing except hosted from IIS and not CherryPy's built in WebServer.
Does anybody have any useful pointers or links for me to follow?