Generating a WSDL using Python and SOAPpy

前端 未结 3 1862
耶瑟儿~
耶瑟儿~ 2020-12-12 22:57

First of all, I will admit I am a novice to web services, although I\'m familiar with HTML and basic web stuff. I created a quick-and-dirty web service using Python that ca

相关标签:
3条回答
  • 2020-12-12 23:31

    When I tried to write Python web service last year, I ended up using ZSI-2.0 (which is something like heir of SOAPpy) and a paper available on its web.

    Basically I wrote my WSDL file by hand and then used ZSI stuff to generate stubs for my client and server code. I wouldn't describe the experience as pleasant, but the application did work.

    0 讨论(0)
  • 2020-12-12 23:40

    I want to generate a WSDL that I can give to the web folks, ....

    You can try soaplib. It has on-demand WSDL generation.

    0 讨论(0)
  • 2020-12-12 23:49

    Sorry for the question few days ago. Now I can invoke the server successfully. A demo is provided:

    def test_soappy():
        """test for SOAPpy.SOAPServer
        """
        #okay
        # it's good for SOAPpy.SOAPServer.
        # in a method,it can have morn than 2 ws server.
        server = SOAPProxy("http://localhost:8081/")
        print server.sum(1,2)
        print server.div(10,2)
    
    0 讨论(0)
提交回复
热议问题