By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,491 Members | 3,230 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,491 IT Pros & Developers. It's quick & easy.

wsdl (soap) without code generation

P: n/a
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
Apr 2 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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.
Apr 2 '08 #2

P: n/a
sam
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:

http://soapclient.com/soaptest.html

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


Apr 2 '08 #3

P: n/a
....

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
Apr 4 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.