python soap web services

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Butternut squash

    #1

    python soap web services

    Is there any reason why there isn't any python library that makes
    using soap as easy as how microsoft .net makes it.

    I mean I write rudimentary asmx files call them from a webbrowser.
    The WSDL is generated and then there is documentation and a form to
    invoke a function.

    When do you think someone will make this available for python web service??
  • Ravi Teja

    #2
    Re: python soap web services

    > Is there any reason why there isn't any python library that makes[color=blue]
    > using soap as easy as how microsoft .net makes it.[/color]

    SOAP with Python is easy too in a different sort of way. I don't know
    about the equivalent for autogenerating WSDL bit as in .NET.

    #!/usr/bin/env python
    def hello():
    return "Hello, world"
    import ZSI
    ZSI.dispatch.As CGI()

    And you have SOAP available on ANY web server.

    More here.

    Learn how to interact with web pages and APIs using the Requests module in Python. Send HTTP requests, handle responses, and customize requests with headers, cookies, and proxies.

    [color=blue]
    > When do you think someone will make this available for python web service??[/color]
    When? Will let you know soon as my crystal ball gets delivered :-)
    Seriously, whenever someone gets that itch to scratch since that's how
    things get done in OSS usually.

    Comment

    • Diez B. Roggisch

      #3
      Re: python soap web services

      Butternut squash wrote:
      [color=blue]
      > Is there any reason why there isn't any python library that makes
      > using soap as easy as how microsoft .net makes it.
      >
      > I mean I write rudimentary asmx files call them from a webbrowser.
      > The WSDL is generated and then there is documentation and a form to
      > invoke a function.[/color]

      The WSDL will never as easily be created as in .NET/JAVA, as Python lacks
      static typing annotations that are used by the WSDL-generators. So either
      someone defines his own type annotation theme for that purpose that can be
      used to infer the WSDL - or you write WSDL yourself. Which is a major
      PITA, as the whole SOAP mess.

      Ravi OTH has pointed out _running_ a SOAP service is easy as cake.

      Diez

      Comment

      • Butternut squash

        #4
        Re: python soap web services

        Diez B. Roggisch wrote:
        [color=blue]
        > Butternut squash wrote:
        >[color=green]
        >> Is there any reason why there isn't any python library that makes
        >> using soap as easy as how microsoft .net makes it.
        >>
        >> I mean I write rudimentary asmx files call them from a webbrowser.
        >> The WSDL is generated and then there is documentation and a form to
        >> invoke a function.[/color]
        >
        > The WSDL will never as easily be created as in .NET/JAVA, as Python lacks
        > static typing annotations that are used by the WSDL-generators. So either
        > someone defines his own type annotation theme for that purpose that can be
        > used to infer the WSDL - or you write WSDL yourself. Which is a major
        > PITA, as the whole SOAP mess.
        >
        > Ravi OTH has pointed out _running_ a SOAP service is easy as cake.
        >[/color]

        I agree python soap is pretty easy to use. Just a bit harder to use the c#
        classic way to call a web service.


        Comment

        Working...