我使用SOAPy
:
from SOAPpy import WSDL, SOAPProxy, SOAPServer, ThreadingSOAPServer, SOAPRequestHandler
import sys
class Hello(object):
def hello(self):
return "Hello World"
if __name__ == "__main__":
s = SOAPServer(addr=('192.168.20.232', 8000))
wsdl_file = '../wsdl/SendFaxService-me.xml'
server = WSDL.Proxy(wsdl_file)
server.show_methods()
s.registerFunction(Hello().hello)
s.serve_forever()
我想要为此服务器使用一个WSDL文件。但我不知道如何为此服务器设置WSDL地址。