wsdl (soap) without code generation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Thomas Guettler

    wsdl (soap) without code generation

    Hi,

    I looked for a solution to talk to a web service which
    offers its signature with a wsdl file.

    I googled for 'wsdl python' and found ZSI.

    This project uses code generation. That's something
    I don't like.

    The book 'dive into python' uses SOAPpy. This looks
    better since it does not generate source code.
    But the last release and first release is from 2001.

    ZSI seems to have integrated SOAPpy.

    I am new to WSDL and SOAP. Do I need a WSDL parsing
    routine at all? I guess my wsdl definition won't change
    during the next years. So I could read the wsdl with
    my eyes and make a fitting soap call...

    Any thoughts?



    --
    Thomas Guettler, http://www.thomas-guettler.de/
    E-Mail: guettli (*) thomas-guettler + de
  • =?ISO-8859-1?Q?Jo=E3o_Neves?=

    #2
    Re: wsdl (soap) without code generation

    On Apr 2, 3:06 pm, Thomas Guettler <h...@tbz-pariv.dewrote:
    Hi,
    >
    I looked for a solution to talk to a web service which
    offers its signature with a wsdl file.
    >
    I googled for 'wsdl python' and found ZSI.
    >
    This project uses code generation. That's something
    I don't like.
    >
    The book 'dive into python' uses SOAPpy. This looks
    better since it does not generate source code.
    But the last release and first release is from 2001.
    >
    ZSI seems to have integrated SOAPpy.
    >
    I am new to WSDL and SOAP. Do I need a WSDL parsing
    routine at all? I guess my wsdl definition won't change
    during the next years. So I could read the wsdl with
    my eyes and make a fitting soap call...
    >
    Any thoughts?
    >
    --
    Thomas Guettler,http://www.thomas-guettler.de/
    E-Mail: guettli (*) thomas-guettler + de
    I've been using SOAPpy directly in one of my projects, and so far my
    experience couldn't be better.
    SOAPpy can handle (hand-written) WSDLs well enough for me, and so far
    it has given me no problems at all.

    Comment

    • sam

      #3
      Re: wsdl (soap) without code generation

      Thomas Guettler napisał(a):

      I googled for 'wsdl python' and found ZSI.
      This is current solution, but it is quite new and actively developed, so newer
      versions are sometimes not compatibile with old ones. So if you use distribution
      provided packages (eg Debian) you can have troubles after system upgrade and
      regenerating stub.


      This project uses code generation. That's something
      I don't like.
      But after you have generated files it is easy to use that tool -- just call a
      function and grab result.

      With ZSI you don't have to generate code, but you will have to do more coding to
      invoke a call.



      I am new to WSDL and SOAP. Do I need a WSDL parsing
      routine at all? I guess my wsdl definition won't change
      during the next years. So I could read the wsdl with
      my eyes and make a fitting soap call...
      No -- you don't have to read WSDL at all! Just make somebody else do it for you.
      SOAP is just about sending and receiving text, but you have to keep that
      properely formated. You don't have to use automation of WSDL and XML parsing.

      For example visit:



      put your wsdl file address, click Retrieve. Then fill forms and see what is
      response and reply -- they will be your templates. Then write simple Python
      programs with socks sending and receiving templates on http (or https) port. If
      you gave me your wsdl file address I could probably give more precise help.

      Here goes example: http://www.ibm.com/developerworks/li...s-pyth5/#code3






      Comment

      • Thomas Guettler

        #4
        Re: wsdl (soap) without code generation

        ....

        Thank you for your answers. I tried to parse the wsdl with two
        libraries. (axis2 (java) and SOAPPy). Both fail because there
        is no entry for 'service'.

        The wsdl is from SAP XI.

        Has someone hints?

        Thomas


        --
        Thomas Guettler, http://www.thomas-guettler.de/
        E-Mail: guettli (*) thomas-guettler + de

        Comment

        Working...