SOAP library for Robot framework

156 views
Skip to first unread message

Arindam Chakraborty

unread,
Feb 12, 2019, 2:03:19 PM2/12/19
to robotframework-users
Hi,
What is the best SOAP library today for Robot framework running on python 2.7?
Can anyone point me to the right process of importing the library in Robot framework? I did not find a good source and all I have tried with doing via SUDS library has failed.

Please help!

Anne kootstra

unread,
Feb 12, 2019, 4:17:15 PM2/12/19
to robotframework-users
In the other thread you were asking about specific problems with your SudsLibrary installation and I think that thread should be used for it. However, I do think the first question on which is the best SOAP Robot Library merits a response. 

The SudsLibrary is probably the library that is has the most keywords and arguably is the most mature. However, it's been dormant since 2014 and as such is not supporting Python 3.x. However, the community has come to the rescue and a couple of forks have emerged that added Python 3.x support and fixed several bugs. 

One fork took a different turn and implemented the Python ZEEP Soap handling module as a replacement for Suds. This is now called robotframework-soaplibrary. It is not as full featured but may prove to be a good starting ground for personalisation. 

All in all it depends on what you want to do, that should determine if you need a Soap library or simply post messages using HTTP libraries. If WSDL handling is a must, then the above libraries may be of help. 

Kind regards,

Anne

Op dinsdag 12 februari 2019 20:03:19 UTC+1 schreef Arindam Chakraborty:

Arindam Chakraborty

unread,
Feb 12, 2019, 4:53:25 PM2/12/19
to robotframework-users
Thanks Anne! I kept two questions separate as I wanted to understand the best library to use right now, rather than just focusing on the issue with suds library . Thanks for the pointer. I went to the link you provided for ZEEP library, but unfortunately, the installation is not detailed enough. The first line it states to create a virtual environment and when I ran the same script it states that there is no such module.

C:\Python27>python -m venv venv
C:\Python27\python.exe: No module named venv

Did you try that? Can I use this library with RED (IDE for Robot framework), pretty much the same way I use any library? Is there any specific documentation anywhere for it's installation?

Anne kootstra

unread,
Feb 13, 2019, 2:12:34 AM2/13/19
to robotframework-users
The venv module is part of the Python 3.3+ as you are on 2.7 you'll have to look into a different one. There are several, but Google knows them all. :-) 

Although it's good practice to use virtual environments to separate different projects requirements and not 'pollute' your base Python installation, it's not required to use. You may need to clean up your python directory in a few weeks, but that's it.

Regards,

Anne

Op dinsdag 12 februari 2019 22:53:25 UTC+1 schreef Arindam Chakraborty:
Reply all
Reply to author
Forward
0 new messages